mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
rules.mk: Fix C++ compilation for .cc suffix
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
223ff59df3
commit
6d80dde8b5
1 changed files with 6 additions and 0 deletions
|
|
@ -214,6 +214,9 @@ strip.done: $(EXE_ALL)
|
||||||
.%.o.dep.mk: %.cpp $(BUILD_HDR)
|
.%.o.dep.mk: %.cpp $(BUILD_HDR)
|
||||||
$(CC) -M $(BUILD_CPPFLAGS) $(DEPEND_CPPFLAGS) $< -o $@
|
$(CC) -M $(BUILD_CPPFLAGS) $(DEPEND_CPPFLAGS) $< -o $@
|
||||||
|
|
||||||
|
.%.o.dep.mk: %.cc $(BUILD_HDR)
|
||||||
|
$(CC) -M $(BUILD_CPPFLAGS) $(DEPEND_CPPFLAGS) $< -o $@
|
||||||
|
|
||||||
.%.o.dep.mk: %.c $(BUILD_HDR)
|
.%.o.dep.mk: %.c $(BUILD_HDR)
|
||||||
$(CC) -M $(BUILD_CPPFLAGS) $(DEPEND_CPPFLAGS) $< -o $@
|
$(CC) -M $(BUILD_CPPFLAGS) $(DEPEND_CPPFLAGS) $< -o $@
|
||||||
|
|
||||||
|
|
@ -256,6 +259,9 @@ endif
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CPP) $(BUILD_CPPFLAGS) -c $<
|
$(CPP) $(BUILD_CPPFLAGS) -c $<
|
||||||
|
|
||||||
|
%.o: %.cc
|
||||||
|
$(CPP) $(BUILD_CPPFLAGS) -c $<
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(BUILD_CFLAGS) -c $<
|
$(CC) $(BUILD_CFLAGS) -c $<
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue