Makefile: fix rule dependencies

This commit is contained in:
Jakub Skokan 2016-07-13 16:02:46 +02:00
parent 21af9d2b65
commit 1318046cf5
2 changed files with 4 additions and 4 deletions

View file

@ -15,8 +15,8 @@ all: $(TARGET)
$(TARGET): $(OBJECTS)
ar crs $(TARGET) $(OBJECTS)
$(OBJECTS): %.o:
$(CC) -c $(CFLAGS) $(subst .o,.cpp,$@) -o $@
$(OBJECTS): %.o: %.cpp
$(CC) -c $(CFLAGS) $< -o $@
clean:
rm -f *.o