aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgonzo <gonzo@toniatuh.com>2023-12-02 13:26:36 +0100
committergonzo <gonzo@toniatuh.com>2023-12-02 13:26:36 +0100
commit493d0a47dd319c29863b95491cddd02fe640d76e (patch)
tree97509c4cefe88e34cf25c2768a58d358be99b378
parent44854f3381e6205ede8fe41b4885b36cea7bee6d (diff)
downloadorg-to-conky-493d0a47dd319c29863b95491cddd02fe640d76e.tar.gz
fixed bsd makefile
-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)