2
#___________________________________________________________________________
10
C_SRCS = groups.c xmalloc.c
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)
20
#---------------------------------------------------------------------------
21
# Edam's makefile v1.0
43
23
# More variables...
45
_SRCS = $(CC_SRCS) $(C_SRCS) $(S_SRCS)
46
_OBJS = $(addsuffix .o,$(basename $(_SRCS)))
47
LDLIBS = $(addprefix -l,$(LIBRARIES))
25
SRCS = $(C_SRCS) $(CC_SCRS) $(S_SRCS)
26
OBJS = $(addsuffix .o,$(basename $(SRCS)))
51
$(if $(CPPBUILD), g++, gcc) -o $(TARGET) $(LDFLAGS) $(_OBJS) $(LDLIBS)
53
#___________________________________________________________________________
56
.PHONY: all clean run depend dep
30
$(CC) -o $(TARGET) $(OBJS) $(LDFLAGS)
32
#---------------------------------------------------------------------------
34
.PHONY: all clean depend dep
58
36
all: clean depend $(TARGET)
61
rm -f core $(DEPFILE) $(_OBJS)
39
rm -f core $(DEPFILE) $(OBJS)
68
# makedepend -f- -- $(CPPFLAGS) -- $(_SRCS) > $(DEPFILE)
43
makedepend -f- -- $(CFLAGS) -- $(SRCS) > $(DEPFILE)
70
#___________________________________________________________________________
45
#---------------------------------------------------------------------------
71
46
#include $(DEPFILE)