/Makefile.in (a1a71bb742e512b346775f8c9d5e34f1dbe7f0ef) (1614 bytes) (mode 100644) (type blob)
export CC := gcc
export INCS +=
export LIBS += -L/usr/lib -L/usr/lib64
export CFLAGS += -O2 -ggdb -Wall -Wextra -pipe
export CFLAGS += -D _FORTIFY_SOURCES=2
export CFLAGS += @CC_SWITCHES@
export OBJS += i_util.o parser_text.o parser_ip2location.o parser.o i_conf.o \
parser_core.o
.PHONY: all
all: ip2clued ip2clue ip2clue_stress
ip2clued: $(OBJS) ip2clued.c
$(CC) $(CFLAGS) $(INCS) ip2clued.c -o ip2clued $(OBJS) $(LIBS) -lpthread -lConn
ip2clue: $(OBJS) ip2clue.c
$(CC) $(CFLAGS) $(INCS) ip2clue.c -o ip2clue $(OBJS) $(LIBS) -lConn
ip2clue_stress: $(OBJS) ip2clue_stress.c
$(CC) $(CFLAGS) $(INCS) ip2clue_stress.c -o ip2clue_stress $(OBJS) $(LIBS) -lConn
i_util.o: i_util.c i_util.h i_types.h i_config.h
$(CC) $(CFLAGS) $(INCS) -c $<
parser_text.o: parser_text.c parser_text.h i_util.o parser_core.o
$(CC) $(CFLAGS) $(INCS) -c $<
parser_ip2location.o: parser_ip2location.c i_util.o
$(CC) $(CFLAGS) $(INCS) -c $<
parser.o: parser.c parser.h parser_text.o parser_ip2location.o parser_core.o
$(CC) $(CFLAGS) $(INCS) -c $<
i_conf.o: i_conf.c i_conf.h i_config.h
$(CC) $(CFLAGS) $(INCS) -c $<
.PHONY: clean
clean:
rm -f $(OBJS) ip2clued ip2clue
install: all
mkdir -p "${I_VAR}/cache/${PRJ}"
mkdir -p "${I_ETC}/${PRJ}"
cp -vd etc/*.conf "${I_ETC}/${PRJ}/"
mkdir -p "${I_ETC}/rc.d/init.d/"
cp etc/ip2clued "${I_ETC}/rc.d/init.d/"
mkdir -p "${I_USR_BIN}"
cp -vd ip2clue "${I_USR_BIN}"
mkdir -p "${I_USR_SBIN}"
cp -vd ip2clued "${I_USR_SBIN}"
mkdir -p "${I_ETC}/cron.daily/"
cp -vd crons/* "${I_ETC}/cron.daily/"
mkdir -p "${I_USR_SHARE}/${PRJ}"
cp -vd data/* "${I_USR_SHARE}/${PRJ}/"
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
47 |
a9a866602d44352da048bd6ae6970951275c9568 |
.exclude |
100644 |
blob |
115 |
8c323b0915d6cfb17e770cea790c7a688adf546f |
.gitignore |
100644 |
blob |
35147 |
94a9ed024d3859793618152ea559a168bbcbb5e2 |
LICENSE |
100644 |
blob |
1614 |
a1a71bb742e512b346775f8c9d5e34f1dbe7f0ef |
Makefile.in |
100644 |
blob |
1780 |
89d08247cf7dd7e38b83fd9da500f6eee926e1ae |
README |
100644 |
blob |
965 |
c06153174a6dbae1d92908e79493c6a2288bcc4b |
TODO |
040000 |
tree |
- |
4183fb09e7128f53343a3a1c187af50171c19895 |
clients |
100755 |
blob |
30 |
92c4bc48245c00408cd7e1fd89bc1a03058f4ce4 |
configure |
040000 |
tree |
- |
866ff01beda9a20ef5068a5a117504a1b2b496cf |
crons |
100755 |
blob |
15674 |
c93b35dad5dedf498b90aafcbf409a4844b1bc8c |
duilder |
100644 |
blob |
728 |
bf74b5b4239eac406de35ff628ebb00456335c15 |
duilder.conf |
040000 |
tree |
- |
ab6bf593a73be7b2cb422c2bf75a81958524b530 |
etc |
100644 |
blob |
1758 |
4a76efe2ee5125d6d19cee5d9f5abe06cde4883c |
i_conf.c |
100644 |
blob |
448 |
fb8429f7ea61c8669a83f1279fce35eee492a6fc |
i_conf.h |
100644 |
blob |
90 |
8bc7f81e7fff1a5c7b350cb464131cb8f2fae6eb |
i_config.h |
100644 |
blob |
2140 |
f029ed1d41c3b4cf9be580d4b39438c2dda2c803 |
i_types.h |
100644 |
blob |
11075 |
c9658a4f24bd96c55c3a0b48b470020851e21e51 |
i_util.c |
100644 |
blob |
1293 |
619bd9eda37a3c700d2fa03dcda5c627f685551e |
i_util.h |
100644 |
blob |
2258 |
e830c971aca34462dbcf4aed1c5f1b68d804d124 |
ip2clue.c |
100644 |
blob |
1200 |
eadfb9d5cd34bf7004ad4710d59762316ad5c7f1 |
ip2clue.spec.in |
100644 |
blob |
6717 |
d4d5cbc67f02e5e154bacc2beadfc23b470db2a1 |
ip2clued.c |
100644 |
blob |
630 |
58bdcc5108d0bc8b7e6d3e54515c5ff1027fcb2c |
my.conf |
100644 |
blob |
7035 |
88d5eb5f8b8e63ee404e7c292496bdd1fa57c1c0 |
parser.c |
100644 |
blob |
780 |
af2e94d9ca6889d29c0dc89726f5ccfac6c01587 |
parser.h |
100644 |
blob |
548 |
92e5dd7d252934f699e58212eba66fe805079d5a |
parser_core.c |
100644 |
blob |
118 |
2130d9f9da8bf36eae902ad3ba11c570d647739f |
parser_core.h |
100644 |
blob |
11633 |
d4620ff6accb1dd1057dd897ec465b304058e4b8 |
parser_ip2location.c |
100644 |
blob |
185 |
4775d2e989d7e830f71144d2492658214cb31c0a |
parser_ip2location.h |
100644 |
blob |
5064 |
7e96815b92eadb0cd89a1b6bd5684b80ad048557 |
parser_text.c |
100644 |
blob |
240 |
1643d56047dfd0609d6827ac475451e2db4bbef2 |
parser_text.h |
100644 |
blob |
4317 |
d920b0b0e9574b4ffc9976ad3bdc7db7eab9b3b0 |
test1.c |
100644 |
blob |
4415 |
94663e1cd87b5a7d1cfda5c0230a972a05f7cbd9 |
test2.c |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/ip2clue
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/ip2clue
Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/ip2clue
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main