Update tgt-pcb Makefile to handle/clean up config header
This change matches what is in other header files.
This commit is contained in:
parent
7f4246a916
commit
f22b42c2cd
|
|
@ -56,6 +56,7 @@ clean:
|
|||
|
||||
distclean: clean
|
||||
rm -f Makefile config.log
|
||||
rm -f stamp-pcb_config-h pcb_config.h
|
||||
|
||||
cppcheck: $(O:.o=.c)
|
||||
cppcheck --enable=all -f $(INCLUDE_PATH) $^
|
||||
|
|
@ -66,6 +67,11 @@ Makefile: $(srcdir)/Makefile.in ../config.status
|
|||
dep:
|
||||
mkdir dep
|
||||
|
||||
stamp-pcb_config-h: $(srcdir)/pcb_config.h.in ../config.status
|
||||
@rm -f $@
|
||||
cd ..; ./config.status --header=tgt-pcb/pcb_config.h
|
||||
pcb_config.h: stamp-pcb_config-h
|
||||
|
||||
%.o: %.cc
|
||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) @DEPENDENCY_FLAG@ -c $< -o $*.o
|
||||
mv $*.d dep
|
||||
|
|
|
|||
Loading…
Reference in New Issue