aboutsummaryrefslogtreecommitdiff
path: root/Make.include
diff options
context:
space:
mode:
Diffstat (limited to 'Make.include')
-rw-r--r--Make.include16
1 files changed, 10 insertions, 6 deletions
diff --git a/Make.include b/Make.include
index 41c2748..2e9de50 100644
--- a/Make.include
+++ b/Make.include
@@ -44,12 +44,16 @@ clean:
-rm -f ../../lib/$(TARGET).$(EXT) $(TARGET).$(EXT)
-rm -f *.o
-all: $(OBJ)
- @echo :: $(OBJ)
- $(LD) $(PD_LDFLAGS) -o $(TARGET).$(EXT) *.o $(PD_LIB)
- $(STRIP) --strip-unneeded $(TARGET).$(EXT)
- -cp $(TARGET).$(EXT) ../../lib/
+all: $(TARGET).$(EXT)
+
+.PHONY: current clean all
+
+$(TARGET).$(EXT): $(OBJ)
+ @echo :: $^
+ $(LD) $(PD_LDFLAGS) -o $@ $^ $(PD_LIB)
+ $(STRIP) --strip-unneeded $@
+ -cp $@ ../../lib/
$(OBJ) : %.o : %.c
- $(CC) $(PD_CFLAGS) $(PD_INCLUDES) -c -o $*.o $*.c
+ $(CC) $(PD_CFLAGS) $(PD_INCLUDES) -c -o $@ $<