2
#___________________________________________________________________________
9
CC_SRCS = simplecrypt.cc
10
C_SRCS = groups.c xmalloc.c
20
#---------------------------------------------------------------------------
21
# Edam's makefile r1.02
16
# Options (comment-out to disable)
21
#___________________________________________________________________________
30
CPPFLAGS = -g -D DEBUG
31
ASFLAGS = -f elf -g -dDEBUG
32
LDFLAGS = -Wall $(if $(STATICLIBS), -static)
39
LDFLAGS = -Wall -s $(if $(STATICLIBS), -static)
23
43
# More variables...
25
SRCS = $(C_SRCS) $(CC_SRCS) $(S_SRCS)
26
OBJS = $(addsuffix .o,$(basename $(SRCS)))
45
_SRCS = $(CC_SRCS) $(C_SRCS) $(S_SRCS)
46
_OBJS = $(addsuffix .o,$(basename $(_SRCS)))
47
LDLIBS = $(addprefix -l,$(LIBRARIES))
30
g++ -o $(TARGET) $(OBJS) $(LDFLAGS)
32
#---------------------------------------------------------------------------
34
.PHONY: all clean depend dep
51
$(if $(CPPBUILD), g++, gcc) -o $(TARGET) $(LDFLAGS) $(_OBJS) $(LDLIBS)
53
#___________________________________________________________________________
56
.PHONY: all clean run depend dep
36
58
all: clean depend $(TARGET)
39
rm -f core $(DEPFILE) $(OBJS)
61
rm -f core $(DEPFILE) $(_OBJS)
43
makedepend -f- -- $(CFLAGS) -- $(SRCS) > $(DEPFILE)
68
# makedepend -f- -- $(CPPFLAGS) -- $(_SRCS) > $(DEPFILE)
45
#---------------------------------------------------------------------------
70
#___________________________________________________________________________
46
71
#include $(DEPFILE)