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