Cleanup Makefile
This commit is contained in:
1 parent
4fe57d6042
commit
dcd83d20a3
1 file changed
+2
-1
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
CC=gcc -std=c99
|
CC=gcc -std=c99
|
||||||
CFLAGS=-Wall -W -pedantic -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wswitch-default -Wswitch-enum -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wlogical-op -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -Wno-unused-function
|
CFLAGS=-Wall -W -pedantic -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wswitch-default -Wswitch-enum -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wlogical-op -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -Wno-unused-function
|
||||||
CPPFLAGS=-I..
|
CPPFLAGS=-I..
|
||||||
|
LDFLAGS=-pthread -lgmp
|
||||||
RM=rm -f
|
RM=rm -f
|
||||||
EXE=./a.exe
|
EXE=./a.exe
|
||||||
EXAMPLES=ex01b.c ex01.c ex02.c ex03.c ex04.c ex05.c ex06.c ex07.c ex08.c ex09.c
|
EXAMPLES=ex01b.c ex01.c ex02.c ex03.c ex04.c ex05.c ex06.c ex07.c ex08.c ex09.c
|
||||||
@@ -11,7 +12,7 @@ all:
|
|||||||
check: examples
|
check: examples
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
for f in $(EXAMPLES) ; do $(CC) $(CFLAGS) $(CPPFLAGS) -g $$f -o $(EXE) -pthread -lgmp ; done
|
for f in $(EXAMPLES) ; do $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -g $$f -o $(EXE) ; done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(EXE) *.s *~ *.o ./a.dat
|
$(RM) $(EXE) *.s *~ *.o ./a.dat
|
||||||
|
|||||||
Reference in new issue
Block a user