mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 05:24:21 +01:00
Correct makefile deps and improve output
This commit is contained in:
parent
a71a5b1870
commit
b888a9b6a5
@ -56,22 +56,23 @@ clean:
|
||||
deps/%.d: %.cpp
|
||||
@echo makedep $(notdir $<)
|
||||
@install -d deps/$(dir $<)
|
||||
@$(CPP) -M $(DEFINES) $(CFLAGS) -o $@ $<
|
||||
@$(CPP) -M -MT objs-host/$(patsubst %.cpp,%.o,$<) $(DEFINES) $(CFLAGS) -o $@ $<
|
||||
|
||||
deps/%.d: %.c
|
||||
@echo makedep $(notdir $<)
|
||||
@install -d deps/$(dir $<)
|
||||
@$(CPP) -M $(DEFINES) $(CFLAGS) -o $@ $<
|
||||
@$(CPP) -M -MT objs-host/$(patsubst %.c,%.o,$<) $(DEFINES) $(CFLAGS) -o $@ $<
|
||||
|
||||
objs-host/%.o: %.cpp
|
||||
@echo $(notdir $<)
|
||||
@echo CXX $(notdir $<)
|
||||
@install -d objs-host/$(dir $<)
|
||||
@$(CXX) $(CFLAGS) $(DEFINES) -c -o $@ $< $(ERROR_FILTER)
|
||||
|
||||
objs-host/%.o: %.c
|
||||
@echo $(notdir $<)
|
||||
@echo CC $(notdir $<)
|
||||
@install -d objs-host/$(dir $<)
|
||||
@$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $< $(ERROR_FILTER)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(LD) $(LDFLAGS) -o $@ $+
|
||||
@echo LD $@
|
||||
@$(LD) $(LDFLAGS) -o $@ $+
|
||||
|
Loading…
Reference in New Issue
Block a user