C90 compliance, except variadic macros and TODOs
[centaur.git] / Makefile
index 41e8fe5a34ee5be4a53b272f363d20e1e0179d2e..c8dee7616279a3a2a91c2fc104a1da46b14a53fa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-PROJ := elfedit
+PROJ := elfucli
 
 LIBRARIES := libelf
 
@@ -14,7 +14,7 @@ SOURCES := $(shell find $(SRCDIR)/ -iname "*.c")
 OBJS    := $(patsubst %.c, $(BUILDDIR)/%.o, $(SOURCES))
 
 INCLUDES := $(patsubst %, -I%, $(INCLUDEDIR) $(SRCDIR)) $(shell pkg-config --cflags-only-I $(LIBRARIES))
-CFLAGS   := -g -Wall $(shell pkg-config --cflags-only-other $(LIBRARIES))
+CFLAGS   := -g -Wall -pedantic -Wno-variadic-macros $(shell pkg-config --cflags-only-other $(LIBRARIES))
 LDFLAGS  := $(shell pkg-config --libs $(LIBRARIES))
 
 
@@ -25,6 +25,7 @@ default: $(EXE)
 
 .PHONY: check
 check: $(EXE)
+       $(error the re-layouting has broken make check for now, sorry.)
        $(EXE) $(EXE) -o testexe
        @cmp $(EXE) testexe
        @rm testexe