diff options
author | 2022-12-30 16:11:35 +0100 | |
---|---|---|
committer | 2022-12-30 16:11:35 +0100 | |
commit | be4a59fe0f3223c1aefc9ed830ec21edb7e0cbca (patch) | |
tree | be956fc0027259f7ccd5e377746602fb756f3b62 | |
parent | 970c73444522a4b4988abaa1746b79df1bfa1137 (diff) | |
download | qureje-be4a59fe0f3223c1aefc9ed830ec21edb7e0cbca.tar.gz qureje-be4a59fe0f3223c1aefc9ed830ec21edb7e0cbca.zip |
Fix Makefile to make it compatible with BSD make and
GNU make and fix the generation of object files
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |