2022-07-28 18:25:05 +02:00
|
|
|
#include ../Config.default.mak
|
2022-07-30 23:27:13 +02:00
|
|
|
#-include ../Config.mak
|
2022-07-28 18:25:05 +02:00
|
|
|
include ../Defs.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
|
|
|
socklist.o \
|
2018-04-02 10:11:25 +02:00
|
|
|
discovery_cache.o\
|
2022-08-23 19:55:36 +02:00
|
|
|
rpc.o\
|
2022-08-11 00:21:01 +02:00
|
|
|
statemachine.o\
|
|
|
|
|
2022-08-23 19:55:36 +02:00
|
|
|
ACTOBJS = \
|
|
|
|
act.o
|
2016-02-14 17:30:14 +01:00
|
|
|
|
2022-08-23 19:55:36 +02:00
|
|
|
ACTPRG=act
|
2020-03-10 11:53:58 +01:00
|
|
|
PRG=actube
|
2022-07-31 20:21:13 +02:00
|
|
|
LIBPATH=-L../../lib/$(KERNEL)/$(ARCH)/ -L/usr/local/lib -L/usr/lib
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2022-07-28 01:36:16 +02:00
|
|
|
LIBS+=-lmavl
|
2020-03-10 11:53:58 +01:00
|
|
|
LIBS+=-lcw
|
|
|
|
LIBS+=-lrt
|
|
|
|
LIBS+=-lpthread
|
|
|
|
LIBS+=-lc
|
2022-07-28 01:36:16 +02:00
|
|
|
LIBS+=-lnettle
|
2022-07-30 23:27:13 +02:00
|
|
|
LIBS+=-lssl
|
2022-07-31 20:21:13 +02:00
|
|
|
LIBS+=-lcrypto
|
2022-08-23 19:55:36 +02:00
|
|
|
LIBS+=-ledit
|
2020-03-11 21:31:36 +01:00
|
|
|
|
2022-07-30 23:27:13 +02:00
|
|
|
INCL_DIRS=-I../ -I/usr/local/include -I./ -I../../include
|
2020-03-10 11:53:58 +01:00
|
|
|
#FLAGS=-DWITH_IPV6 -DWITH_OPENSSL -DSYS_ARCH="$(ARCH)" -DSYS_ARCH="XXX"
|
2022-08-24 00:29:26 +02:00
|
|
|
FLAGS=-DWITH_IPV6 -DUSE_OPENSSL -DSYS_ARCH='"$(KERNEL)/$(ARCH)"'
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2022-08-23 19:55:36 +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
|
|
|
|
2022-08-23 19:55:36 +02:00
|
|
|
all: $(PRG) $(ACTPRG)
|
2015-04-05 02:07:59 +02:00
|
|
|
|
2020-03-10 11:53:58 +01:00
|
|
|
$(PRG): $(OBJS)
|
2022-07-31 20:21:13 +02:00
|
|
|
$(CC) $(OBJS) -o $(PRG) $(LIBPATH) $(LDFLAGS) $(LIBS)
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2022-08-23 19:55:36 +02:00
|
|
|
$(ACTPRG): $(ACTOBJS)
|
2022-08-24 00:54:54 +02:00
|
|
|
$(CC) $(ACTOBJS) -o $(ACTPRG) $(LIBPATH) $(LDFLAGS) $(LIBS) -ledit
|
2022-08-23 19:55:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
clean:
|
2022-08-23 19:55:36 +02:00
|
|
|
rm -f $(PRG) $(OBJS)
|
|
|
|
rm -f $(ACTPRG) $(ACTOBJS)
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2018-04-01 18:32:13 +02:00
|
|
|
|