From 493d0a47dd319c29863b95491cddd02fe640d76e Mon Sep 17 00:00:00 2001 From: gonzo Date: Sat, 2 Dec 2023 13:26:36 +0100 Subject: fixed bsd makefile --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3