Moving away from gnu make to standard make files
FossilOrigin-Name: 54da48386fd111829892b580e1746bc892ca3ddb6e17cff298dbed8878ddd9ec
This commit is contained in:
parent
f97a580e54
commit
8a78f8f2d9
@ -1,9 +1,9 @@
|
||||
include ../Defs.mak
|
||||
include ../Config.mak
|
||||
include ../WtpConfig.mak
|
||||
-include ../Config.local.mak
|
||||
-include ../WtpConfig.local.mak
|
||||
include ../Macros.mak
|
||||
#include ../Defs.mak
|
||||
#include ../Config.mak
|
||||
#include ../WtpConfig.mak
|
||||
#-include ../Config.local.mak
|
||||
#-include ../WtpConfig.local.mak
|
||||
#include ../Macros.mak
|
||||
|
||||
|
||||
|
||||
@ -16,26 +16,31 @@ LIBS := -lcw -lnettle
|
||||
#STATICLIBS := $(LIBDIR)/$(ARCH)/libcw.a
|
||||
LDFLAGS += -L$(LIBARCHDIR)
|
||||
|
||||
ifeq ($(SSL_LIBRARY),GNUTLS)
|
||||
CFLAGS+=-DWITH_GNUTLS
|
||||
CFLAGS+=$(GNUTLS_CFLAGS)
|
||||
LIBS+=$(GNUTLS_LIBS)
|
||||
LDFLAGS+=$(GNUTLS_LDFLAGS)
|
||||
endif
|
||||
#ifeq ($(SSL_LIBRARY),GNUTLS)
|
||||
#CFLAGS+=-DWITH_GNUTLS
|
||||
#CFLAGS+=$(GNUTLS_CFLAGS)
|
||||
#LIBS+=$(GNUTLS_LIBS)
|
||||
#LDFLAGS+=$(GNUTLS_LDFLAGS)
|
||||
#endif
|
||||
|
||||
ifeq ($(SSL_LIBRARY),OPENSSL)
|
||||
#ifeq ($(SSL_LIBRARY),OPENSSL)
|
||||
CFLAGS+=-DWITH_OPENSSL
|
||||
CFLAGS+=$(OPESSL_CFLAGS)
|
||||
LDFLAGS+=$(OPENSSL_LDFLAGS)
|
||||
LIBS+=$(OPENSSL_LIBS)
|
||||
endif
|
||||
|
||||
#endif
|
||||
|
||||
#SRC=$(wildcard *.c)
|
||||
SRC=wtp_main.c discovery.c join.c configure.c run.c changestate.c
|
||||
OBJS=\
|
||||
wtp_main.o\
|
||||
discovery.o\
|
||||
join.o\
|
||||
configure.o\
|
||||
run.o\
|
||||
changestate.o
|
||||
|
||||
OBJS=$(patsubst %.c,%.o,$(SRC))
|
||||
OBJS:=$(patsubst %.o,$(OBJDIR)/%.o,$(OBJS))
|
||||
#OBJS=$(patsubst %.c,%.o,$(SRC))
|
||||
#OBJS:=$(patsubst %.o,$(OBJDIR)/%.o,$(OBJS))
|
||||
|
||||
ALL=$(EXENAME)
|
||||
|
||||
@ -53,8 +58,8 @@ $(EXENAME): $(OBJS)
|
||||
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJDIR)/*
|
||||
$(RM) $(EXENAME)
|
||||
# rm $(OBJDIR)/*
|
||||
rm $(EXENAME)
|
||||
|
||||
deps:
|
||||
echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > .depend
|
||||
|
Loading…
Reference in New Issue
Block a user