From bf9c1b6b109c1aa2895c794785f525d216e18757 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sun, 4 Mar 2018 09:04:49 +0800 Subject: [PATCH] Makefile tweak. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8df6380..4839231 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,6 @@ OBJ = $(SRC:.c=.o) $(SRC2:.cpp=.o) DEP = $(SRC:.c=.d) $(SRC2:.cpp=.d) CFLAGS = $(DFLAGS) -c -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DVDATE=\"`date +"%y%m%d"`\" -CFLAGS2 = $(CFLAGS) -std=gnu99 LFLAGS = -lc -lstdc++ -lrt $(PRJ): $(OBJ) @@ -32,7 +31,7 @@ clean: %.o: %.c @$(info $<) - @$(CC) $(CFLAGS2) -o $@ -c $< 2>&1 | sed -e 's/\(.[a-zA-Z]\+\):\([0-9]\+\):\([0-9]\+\):/\1(\2,\ \3):/g' + @$(CC) $(CFLAGS) -std=gnu99 -o $@ -c $< 2>&1 | sed -e 's/\(.[a-zA-Z]\+\):\([0-9]\+\):\([0-9]\+\):/\1(\2,\ \3):/g' %.o: %.cpp @$(info $<)