2020-03-11 21:40:57 +01:00
|
|
|
include ../Config.default.mak
|
|
|
|
-include ../Config.mak
|
2018-03-20 11:57:44 +01:00
|
|
|
|
2020-03-10 11:53:58 +01:00
|
|
|
OBJS = \
|
2016-02-14 17:30:14 +01:00
|
|
|
wtplist.o wtpman.o conf.o ac_main.o \
|
2016-04-10 16:04:58 +02:00
|
|
|
dataman.o \
|
2016-02-14 17:30:14 +01:00
|
|
|
ac_interface.o \
|
|
|
|
socklist.o \
|
|
|
|
db.o \
|
|
|
|
ac_global.o \
|
2018-04-02 10:11:25 +02:00
|
|
|
discovery_cache.o\
|
2018-05-02 11:03:05 +02:00
|
|
|
shell.o\
|
2016-02-14 17:30:14 +01:00
|
|
|
|
2020-03-10 11:53:58 +01:00
|
|
|
ARCH != uname -m
|
|
|
|
PRG=actube
|
|
|
|
LIBPATH=-L../../lib/$(ARCH)/ -L/usr/local/lib -L/usr/lib
|
2016-02-14 17:30:14 +01:00
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2020-03-10 11:53:58 +01:00
|
|
|
LIBS+=-lcw
|
|
|
|
LIBS+=-lrt
|
|
|
|
LIBS+=-lpthread
|
|
|
|
LIBS+=-lconfuse
|
|
|
|
LIBS+=-lsqlite3
|
|
|
|
LIBS+=-lc
|
2020-03-11 21:31:36 +01:00
|
|
|
LIBS+=$(OPENSSL_LIBS)
|
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2020-03-10 11:53:58 +01:00
|
|
|
INCL_DIRS=-I../ -I/usr/local/include -I./
|
|
|
|
#FLAGS=-DWITH_IPV6 -DWITH_OPENSSL -DSYS_ARCH="$(ARCH)" -DSYS_ARCH="XXX"
|
|
|
|
FLAGS=-DWITH_IPV6 -DWITH_OPENSSL -DSYS_ARCH='"$(ARCH)"'
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2020-03-10 11:53:58 +01:00
|
|
|
.c.o:
|
2018-02-26 00:19:44 +01:00
|
|
|
@echo " $(CC) "$<
|
2020-03-10 11:53:58 +01:00
|
|
|
$(CC) $(FLAGS) $(INCL_DIRS) -c $(CFLAGS) $< -o $@
|
2015-04-05 02:07:59 +02:00
|
|
|
|
|
|
|
|
2020-03-10 11:53:58 +01:00
|
|
|
$(PRG): $(OBJS)
|
2018-02-26 00:19:44 +01:00
|
|
|
# $(CC) $(AC_OBJS) ../mod/modload_ac.o -o $(AC_NAME) $(LDFLAGS) $(LIBS)
|
2020-03-10 11:53:58 +01:00
|
|
|
$(CC) $(LIBS) $(OBJS) -o $(PRG) $(LIBPATH) $(LDFLAGS) $(LIBS)
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2020-03-10 11:53:58 +01:00
|
|
|
rm -f $(PRG) $(OBJS)
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2018-04-01 18:32:13 +02:00
|
|
|
|