diff --git a/example/Makefile b/example/Makefile index 01406918..5d13faf5 100644 --- a/example/Makefile +++ b/example/Makefile @@ -1,10 +1,9 @@ -CC=gcc -std=c99 +CC=cc -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 CPPFLAGS=-I.. LDFLAGS=-pthread -lgmp RM=rm -f EXE=./a.exe -EXAMPLES=ex01b.c ex01.c ex02.c ex03.c ex04.c ex05.c ex06.c ex07.c ex08.c ex09.c all: @echo "Nothing to be done." @@ -12,7 +11,7 @@ all: check: examples examples: - for f in $(EXAMPLES) ; do $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -g $$f -o $(EXE) ; done + for f in ex-*.c ; do $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -g $$f -o $(EXE) ; done clean: $(RM) $(EXE) *.s *~ *.o ./a.dat diff --git a/example/ex01.c b/example/ex-array01.c similarity index 100% rename from example/ex01.c rename to example/ex-array01.c diff --git a/example/ex01b.c b/example/ex-array02.c similarity index 100% rename from example/ex01b.c rename to example/ex-array02.c diff --git a/example/ex02.c b/example/ex-array03.c similarity index 100% rename from example/ex02.c rename to example/ex-array03.c diff --git a/example/ex10.c b/example/ex-array04.c similarity index 100% rename from example/ex10.c rename to example/ex-array04.c diff --git a/example/ex04.c b/example/ex-buffer01.c similarity index 100% rename from example/ex04.c rename to example/ex-buffer01.c diff --git a/example/ex03.c b/example/ex-dict01.c similarity index 100% rename from example/ex03.c rename to example/ex-dict01.c diff --git a/example/ex07.c b/example/ex-dict02.c similarity index 100% rename from example/ex07.c rename to example/ex-dict02.c diff --git a/example/ex09.c b/example/ex-dict03.c similarity index 100% rename from example/ex09.c rename to example/ex-dict03.c diff --git a/example/ex06.c b/example/ex-list01.c similarity index 100% rename from example/ex06.c rename to example/ex-list01.c diff --git a/example/ex05.c b/example/ex-multi01.c similarity index 100% rename from example/ex05.c rename to example/ex-multi01.c diff --git a/example/ex08.c b/example/ex-multi02.c similarity index 100% rename from example/ex08.c rename to example/ex-multi02.c diff --git a/example/ex11.c b/example/ex-rbtree01.c similarity index 100% rename from example/ex11.c rename to example/ex-rbtree01.c