summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2022-12-30 16:11:35 +0100
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2022-12-30 16:11:35 +0100
commitbe4a59fe0f3223c1aefc9ed830ec21edb7e0cbca (patch)
treebe956fc0027259f7ccd5e377746602fb756f3b62
parent970c73444522a4b4988abaa1746b79df1bfa1137 (diff)
downloadqureje-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--Makefile8
1 files 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