diff --git a/Makefile b/Makefile index 342a832b7163c6176590a996448e8df32db521ba..4380e7da031cd1385a7fa29b58a593b03aa3e0d2 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ SRCS := test.c fx_s1615_double.c fx_1615_longlong.c OBJS := $(SRCS:.c=.o) -CC := gcc # pre-defined macro can be redefined! -#CFLAGS = -c -Wall -g -CFLAGS = -Wall +CFLAGS := -c -Wall -lm +PG := +DEFINE := test : $(OBJS) - $(CC) -o $@ $^ -lm + $(CC) -o $@ $^ -lm $(PG) # default rule .c.o : - $(CC) $(CFLAGS) $< -lm + $(CC) $(CFLAGS) $(DEFINE) $< # dummy target - no dependency clean :