Skip to content
Snippets Groups Projects
Commit 3cded3c8 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Added possibility to personalize CPPFLAGS in a module

parent e1897ae0
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ endif ...@@ -6,7 +6,7 @@ endif
# rule for c++ # rule for c++
%.o: %.cpp %.o: %.cpp
$(CXXDEP) -c -MM -MF$*.d $(CPPFLAGS) $(CXXFLAGS) $*.cpp $(CXXDEP) -c -MM -MF$*.d $(CPPFLAGS) $(ADDCPPFLAGS) $(CXXFLAGS) $*.cpp
@cp -f $*.d $*.d.tmp @cp -f $*.d $*.d.tmp
@-test -d deps || mkdir deps @-test -d deps || mkdir deps
@sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | \ @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | \
...@@ -14,12 +14,12 @@ endif ...@@ -14,12 +14,12 @@ endif
@mv $*.d deps/$*.d @mv $*.d deps/$*.d
@rm -f $*.d.tmp @rm -f $*.d.tmp
ifndef XLF ifndef XLF
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $*.cpp -o $*.o $(CXX) -c $(CPPFLAGS) $(ADDCPPFLAGS) $(CXXFLAGS) $*.cpp -o $*.o
endif endif
# rule for c # rule for c
%.o: %.c %.o: %.c
$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c -o $*.o $(CC) -c $(CPPFLAGS) $(ADDCPPFLAGS) $(CFLAGS) $*.c -o $*.o
# #
CLEANLIST=*~ *.tmp *.xxd *.o *.so *.dylib CLEANLIST=*~ *.tmp *.xxd *.o *.so *.dylib
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment