"make clean" works, and "make all" compiles, but does not link
FossilOrigin-Name: af35b490ebb2140d9f70dc52549ad5e6b4747267d37f18a56e26a2a5f26499d7
This commit is contained in:
parent
8a78f8f2d9
commit
ac26065687
@ -6,6 +6,7 @@
|
|||||||
#include ../Macros.mak
|
#include ../Macros.mak
|
||||||
|
|
||||||
|
|
||||||
|
INCL_DIRS=-I../
|
||||||
|
|
||||||
LIBDIR := ../../lib
|
LIBDIR := ../../lib
|
||||||
LIBARCHDIR := $(LIBDIR)/$(ARCH)
|
LIBARCHDIR := $(LIBDIR)/$(ARCH)
|
||||||
@ -32,12 +33,15 @@ LIBS+=$(OPENSSL_LIBS)
|
|||||||
|
|
||||||
#SRC=$(wildcard *.c)
|
#SRC=$(wildcard *.c)
|
||||||
OBJS=\
|
OBJS=\
|
||||||
wtp_main.o\
|
wtp_main.o\
|
||||||
discovery.o\
|
discovery.o\
|
||||||
join.o\
|
join.o\
|
||||||
configure.o\
|
configure.o\
|
||||||
run.o\
|
run.o\
|
||||||
changestate.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))
|
||||||
@ -46,11 +50,12 @@ ALL=$(EXENAME)
|
|||||||
|
|
||||||
all: $(ALL)
|
all: $(ALL)
|
||||||
|
|
||||||
|
#$(OBJDIR)/%.o:%.c
|
||||||
|
|
||||||
$(OBJDIR)/%.o:%.c
|
.c.o:
|
||||||
@mkdir -p $(OBJDIR)
|
# @mkdir -p $(OBJDIR)
|
||||||
@echo " $(CC) "$<
|
@echo " $(CC) "$<
|
||||||
@$(CC) -c $(CFLAGS) $< -o $@
|
@$(CC) $(INCL_DIRS) -c $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
$(EXENAME): $(OBJS)
|
$(EXENAME): $(OBJS)
|
||||||
echo " $(LD) $(EXENAME)"
|
echo " $(LD) $(EXENAME)"
|
||||||
@ -58,8 +63,9 @@ $(EXENAME): $(OBJS)
|
|||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
rm -f *.o
|
||||||
# rm $(OBJDIR)/*
|
# rm $(OBJDIR)/*
|
||||||
rm $(EXENAME)
|
rm -f $(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