aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-07-20 18:41:51 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-07-20 18:41:51 -0400
commitfe40d4699726c7b7f5f8f9d5a46a11b9d44a3032 (patch)
tree89a8eb3e8dffd86adee210b5eb7c4e212b005128
parent71e9f7b187ff27b9d6d9d399c43dfb2f3c4cbe84 (diff)
added optimization flags
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2b49e84..699ddef 100644
--- a/Makefile
+++ b/Makefile
@@ -3,15 +3,20 @@ CFLAGS := -Wall
SRCS := eztester.c
OBJS := eztester.o eztester_debug.o
-STATIC_LIBS := eztester.a eztester_debug.a
+STATIC_LIBS := libeztester.a libeztester_debug.a
+
+.PHONY: all clean
all: $(STATIC_LIBS)
eztester.o: eztester.c
- $(CC) -c $(CFLAGS) -o $@ $<
+ $(CC) -c $(CFLAGS) -O3 -o $@ $<
eztester_debug.o: eztester.c
- $(CC) -c -ggdb $(CFLAGS) -o $@ $<
+ $(CC) -c -ggdb -Og $(CFLAGS) -o $@ $<
-%.a: %.o
+lib%.a: %.o
ar rcs $@ $<
+
+clean:
+ rm $(STATIC_LIBS) $(OBJS)