actube/src/ac/Makefile
root 305f6eea2e Switched to Config.default.mak
FossilOrigin-Name: b80a347bd1c5aca770fa0135f30bbaa33c9f22eabac7424f5ee10c818ca1228e
2020-03-11 20:40:57 +00:00

46 lines
831 B
Makefile

include ../Config.default.mak
-include ../Config.mak
OBJS = \
wtplist.o wtpman.o conf.o ac_main.o \
dataman.o \
ac_interface.o \
socklist.o \
db.o \
ac_global.o \
discovery_cache.o\
shell.o\
ARCH != uname -m
PRG=actube
LIBPATH=-L../../lib/$(ARCH)/ -L/usr/local/lib -L/usr/lib
LIBS+=-lcw
LIBS+=-lrt
LIBS+=-lpthread
LIBS+=-lconfuse
LIBS+=-lsqlite3
LIBS+=-lc
LIBS+=$(OPENSSL_LIBS)
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)"'
.c.o:
@echo " $(CC) "$<
$(CC) $(FLAGS) $(INCL_DIRS) -c $(CFLAGS) $< -o $@
$(PRG): $(OBJS)
# $(CC) $(AC_OBJS) ../mod/modload_ac.o -o $(AC_NAME) $(LDFLAGS) $(LIBS)
$(CC) $(LIBS) $(OBJS) -o $(PRG) $(LIBPATH) $(LDFLAGS) $(LIBS)
clean:
rm -f $(PRG) $(OBJS)