2
#___________________________________________________________________________
9
CC_SRCS = simplecrypt.cc
20
CPPFLAGS = $(DEBUG) -O2
21
ASFLAGS = $(DEBUG) -f elf
22
LDFLAGS = $(DEBUG) -Wall -s -nostartfiles
24
#___________________________________________________________________________
20
#---------------------------------------------------------------------------
21
# Edam's makefile r1.02
30
23
# More variables...
32
_SRCS = $(CC_SRCS) $(C_SRCS) $(S_SRCS)
33
_OBJS = $(addsuffix .o,$(basename $(_SRCS)))
34
LDLIBS = $(addprefix -l,$(LIBRARIES))
25
SRCS = $(C_SRCS) $(CC_SRCS) $(S_SRCS)
26
OBJS = $(addsuffix .o,$(basename $(SRCS)))
38
gcc -o $(TARGET) $(LDFLAGS) $(_OBJS) $(LDLIBS)
30
g++ -o $(TARGET) $(OBJS) $(LDFLAGS)
40
#___________________________________________________________________________
32
#---------------------------------------------------------------------------
43
34
.PHONY: all clean depend dep
45
36
all: clean depend $(TARGET)
48
rm -f core $(DEPFILE) $(_OBJS)
39
rm -f core $(DEPFILE) $(OBJS)
52
# makedepend -f- -- $(CPPFLAGS) -- $(_SRCS) > $(DEPFILE)
43
makedepend -f- -- $(CFLAGS) -- $(SRCS) > $(DEPFILE)
54
#___________________________________________________________________________
45
#---------------------------------------------------------------------------
55
46
#include $(DEPFILE)