From be4a59fe0f3223c1aefc9ed830ec21edb7e0cbca Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Fri, 30 Dec 2022 16:11:35 +0100 Subject: Fix Makefile to make it compatible with BSD make and GNU make and fix the generation of object files --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 03775b9..f3aac0f 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ .SUFFIXES: .c .o .h .a -.include "config.mk" +include config.mk $(PROG): ${OBJ} $(LINKER) ${OBJ} -o $@ $(LFLAGS) .c.o: - @echo $< - $(CC) $(CFLAGS) -c $< + @echo $< $@ + $(CC) $(CFLAGS) -c $< -o $@ clean: - rm -f *.o + rm -f ${OBJ} rm -f $(PROG) rm -f *.core -- cgit v1.2.3