aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index dc27132..6db584e 100644
--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,15 @@ all: $(TARGET)
$(OBJ): $(HEAD)
-%.o: %.c
- $(CC) -o $@ -c $< $(CFLAGS)
+
+.SUFFIXES: .c .o
+.c.o:
+.ifmake release
+ $(CC) $(CFLAGS) $(RELFLAGS) -o $@ -c $<
+.else
+ $(CC) $(CFLAGS) $(BLDFLAGS) -o $@ -c $<
+.endif
+
$(TARGET): $(OBJ)
$(CC) -o $@ $(OBJ) $(LIBS) $(BLDFLAGS)