2
#___________________________________________________________________________
9
CC_SRCS = helloworld.cc
16
# Uncomment for debug-build
19
#___________________________________________________________________________
28
CPPFLAGS = -g -D DEBUG
29
ASFLAGS = -f elf -g -dDEBUG
20
#---------------------------------------------------------------------------
21
# Edam's makefile v1.0
41
23
# More variables...
43
_SRCS = $(CC_SRCS) $(C_SRCS) $(S_SRCS)
44
_OBJS = $(addsuffix .o,$(basename $(_SRCS)))
45
LDLIBS = $(addprefix -l,$(LIBRARIES))
25
SRCS = $(C_SRCS) $(CC_SCRS) $(S_SRCS)
26
OBJS = $(addsuffix .o,$(basename $(SRCS)))
49
g++ -o $(TARGET) $(LDFLAGS) $(_OBJS) $(LDLIBS)
51
#___________________________________________________________________________
54
.PHONY: all clean run depend dep
30
$(CC) -o $(TARGET) $(OBJS) $(LDFLAGS)
32
#---------------------------------------------------------------------------
34
.PHONY: all clean depend dep
56
36
all: clean depend $(TARGET)
59
rm -f core $(DEPFILE) $(_OBJS)
39
rm -f core $(DEPFILE) $(OBJS)
66
# makedepend -f- -- $(CPPFLAGS) -- $(_SRCS) > $(DEPFILE)
43
makedepend -f- -- $(CFLAGS) -- $(SRCS) > $(DEPFILE)
68
#___________________________________________________________________________
45
#---------------------------------------------------------------------------
69
46
#include $(DEPFILE)