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 ../Defs.mak
|
||||||
include ../Config.mak
|
#include ../Config.mak
|
||||||
include ../WtpConfig.mak
|
#include ../WtpConfig.mak
|
||||||
-include ../Config.local.mak
|
#-include ../Config.local.mak
|
||||||
-include ../WtpConfig.local.mak
|
#-include ../WtpConfig.local.mak
|
||||||
include ../Macros.mak
|
#include ../Macros.mak
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -16,26 +16,31 @@ LIBS := -lcw -lnettle
|
|||||||
#STATICLIBS := $(LIBDIR)/$(ARCH)/libcw.a
|
#STATICLIBS := $(LIBDIR)/$(ARCH)/libcw.a
|
||||||
LDFLAGS += -L$(LIBARCHDIR)
|
LDFLAGS += -L$(LIBARCHDIR)
|
||||||
|
|
||||||
ifeq ($(SSL_LIBRARY),GNUTLS)
|
#ifeq ($(SSL_LIBRARY),GNUTLS)
|
||||||
CFLAGS+=-DWITH_GNUTLS
|
#CFLAGS+=-DWITH_GNUTLS
|
||||||
CFLAGS+=$(GNUTLS_CFLAGS)
|
#CFLAGS+=$(GNUTLS_CFLAGS)
|
||||||
LIBS+=$(GNUTLS_LIBS)
|
#LIBS+=$(GNUTLS_LIBS)
|
||||||
LDFLAGS+=$(GNUTLS_LDFLAGS)
|
#LDFLAGS+=$(GNUTLS_LDFLAGS)
|
||||||
endif
|
#endif
|
||||||
|
|
||||||
ifeq ($(SSL_LIBRARY),OPENSSL)
|
#ifeq ($(SSL_LIBRARY),OPENSSL)
|
||||||
CFLAGS+=-DWITH_OPENSSL
|
CFLAGS+=-DWITH_OPENSSL
|
||||||
CFLAGS+=$(OPESSL_CFLAGS)
|
CFLAGS+=$(OPESSL_CFLAGS)
|
||||||
LDFLAGS+=$(OPENSSL_LDFLAGS)
|
LDFLAGS+=$(OPENSSL_LDFLAGS)
|
||||||
LIBS+=$(OPENSSL_LIBS)
|
LIBS+=$(OPENSSL_LIBS)
|
||||||
endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#SRC=$(wildcard *.c)
|
#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 %.c,%.o,$(SRC))
|
||||||
OBJS:=$(patsubst %.o,$(OBJDIR)/%.o,$(OBJS))
|
#OBJS:=$(patsubst %.o,$(OBJDIR)/%.o,$(OBJS))
|
||||||
|
|
||||||
ALL=$(EXENAME)
|
ALL=$(EXENAME)
|
||||||
|
|
||||||
@ -53,8 +58,8 @@ $(EXENAME): $(OBJS)
|
|||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OBJDIR)/*
|
# rm $(OBJDIR)/*
|
||||||
$(RM) $(EXENAME)
|
rm $(EXENAME)
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > .depend
|
echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > .depend
|
||||||
|
Loading…
Reference in New Issue
Block a user