1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
# Makefile August 2006 by Alexandros Stamatakis
# Makefile cleanup October 2006, Courtesy of Peter Cordes <peter@cordes.ca>
CC = gcc
CFLAGS += -fomit-frame-pointer -O2 -D_GNU_SOURCE -funroll-loops -Wall -Wunused-parameter -Wredundant-decls -Wreturn-type -Wswitch-default -Wunused-value -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wimport -Wunused -Wunused-function -Wunused-label -Wno-int-to-pointer-cast -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wstrict-prototypes -Wpointer-sign -Wextra -Wredundant-decls -Wunused -Wunused-function -Wunused-parameter -Wunused-value -Wunused-variable -Wformat -Wformat-nonliteral -Wparentheses -Wsequence-point -Wuninitialized -Wundef -Wbad-function-cast
LIBRARIES = -lm
RM = rm -f
objs = axml.o parsePartitions.o
SFX := ""
all : clean parse-examl$(SFX)
GLOBAL_DEPS = axml.h globalVariables.h ../versionHeader/version.h
parse-examl$(SFX) : $(objs)
$(CC) -o $@ $(objs) $(LIBRARIES) $(LDFLAGS)
axml.o : axml.c $(GLOBAL_DEPS)
parsePartitions.o : parsePartitions.c $(GLOBAL_DEPS)
clean :
$(RM) *.o parse-examl$(SFX)
dev : parse-examl
|