From: Gilles Depeyrot Date: Sun, 22 Jul 2001 15:05:53 +0000 (+0000) Subject: added dependency handling to Makefiles X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/721a4a08bce5245dd748a9f4c64c5d25a02e8155 added dependency handling to Makefiles git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/calendar/Makefile.in b/samples/calendar/Makefile.in index c8aae2a48e..7f4ad4135b 100644 --- a/samples/calendar/Makefile.in +++ b/samples/calendar/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/calendar PROGRAM=calendar -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/caret/Makefile.in b/samples/caret/Makefile.in index c8da9773b2..49d9bf9327 100644 --- a/samples/caret/Makefile.in +++ b/samples/caret/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/caret PROGRAM=caret -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/checklst/Makefile.in b/samples/checklst/Makefile.in index 1d4942a518..0fdc5b0992 100644 --- a/samples/checklst/Makefile.in +++ b/samples/checklst/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/checklst PROGRAM=checklst -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/config/Makefile.in b/samples/config/Makefile.in index 2d556250e6..f50ef29d09 100644 --- a/samples/config/Makefile.in +++ b/samples/config/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/config PROGRAM=conftest -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/console/Makefile.in b/samples/console/Makefile.in index b8c57fb300..e9437c18bb 100644 --- a/samples/console/Makefile.in +++ b/samples/console/Makefile.in @@ -15,8 +15,11 @@ program_dir = samples/console PROGRAM=console -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d + DATAFILES=testdata.fc include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/controls/Makefile.in b/samples/controls/Makefile.in index b45769f16f..c0c0bf217e 100644 --- a/samples/controls/Makefile.in +++ b/samples/controls/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/controls PROGRAM=controls -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/db/Makefile.in b/samples/db/Makefile.in index 0165c3af09..3f9453ea8d 100644 --- a/samples/db/Makefile.in +++ b/samples/db/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/db PROGRAM=dbtest -OBJECTS=$(PROGRAM).o listdb.o +OBJECTS =$(PROGRAM).o listdb.o +DEPFILES=$(PROGRAM).d listdb.d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/dialogs/Makefile.in b/samples/dialogs/Makefile.in index 51ac0b9c2d..0c253a3ebe 100644 --- a/samples/dialogs/Makefile.in +++ b/samples/dialogs/Makefile.in @@ -17,7 +17,9 @@ DATAFILES=tips.txt PROGRAM=dialogs -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/dialup/Makefile.in b/samples/dialup/Makefile.in index 351fd78ac3..de118acab0 100644 --- a/samples/dialup/Makefile.in +++ b/samples/dialup/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/dialup PROGRAM=nettest -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/dnd/Makefile.in b/samples/dnd/Makefile.in index df5d6d6dc8..90599ae851 100644 --- a/samples/dnd/Makefile.in +++ b/samples/dnd/Makefile.in @@ -17,7 +17,9 @@ DATAFILES=julian.png dnd.wxr PROGRAM=dnd -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/docview/Makefile.in b/samples/docview/Makefile.in index b8a8bb643f..38e118c6aa 100644 --- a/samples/docview/Makefile.in +++ b/samples/docview/Makefile.in @@ -15,8 +15,10 @@ program_dir = samples/docview PROGRAM=docview -OBJECTS=$(PROGRAM).o doc.o view.o +OBJECTS =$(PROGRAM).o doc.o view.o +DEPFILES=$(PROGRAM).d doc.d view.d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/docvwmdi/Makefile.in b/samples/docvwmdi/Makefile.in index 204fb09a33..3d466ed7c7 100644 --- a/samples/docvwmdi/Makefile.in +++ b/samples/docvwmdi/Makefile.in @@ -15,6 +15,9 @@ program_dir = samples/docvwmdi PROGRAM=docview -OBJECTS=$(PROGRAM).o doc.o view.o +OBJECTS =$(PROGRAM).o doc.o view.o +DEPFILES=$(PROGRAM).d doc.d view.d include ../../src/makeprog.env + +-include $(DEPFILES) diff --git a/samples/dragimag/Makefile.in b/samples/dragimag/Makefile.in index 5fac7499b9..a945e70bd0 100644 --- a/samples/dragimag/Makefile.in +++ b/samples/dragimag/Makefile.in @@ -8,7 +8,9 @@ program_dir = samples/dragimag PROGRAM=dragimag DATAFILES=backgrnd.png shape01.png shape02.png shape03.png -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/drawing/Makefile.in b/samples/drawing/Makefile.in index 77cc503b05..4394020ccc 100644 --- a/samples/drawing/Makefile.in +++ b/samples/drawing/Makefile.in @@ -15,8 +15,11 @@ program_dir = samples/drawing PROGRAM=drawing -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d + DATAFILES=pat4.bmp pat35.bmp pat36.bmp image.bmp mask.bmp include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/dynamic/Makefile.in b/samples/dynamic/Makefile.in index 2dc84a9616..cb54ad1a86 100644 --- a/samples/dynamic/Makefile.in +++ b/samples/dynamic/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/dynamic PROGRAM=dynamic -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/erase/Makefile.in b/samples/erase/Makefile.in index 0d9ee554b0..4c534ac7b8 100644 --- a/samples/erase/Makefile.in +++ b/samples/erase/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/erase PROGRAM=erase -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/event/Makefile.in b/samples/event/Makefile.in index fdec4551b3..501861217d 100644 --- a/samples/event/Makefile.in +++ b/samples/event/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/event PROGRAM=event -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/exec/Makefile.in b/samples/exec/Makefile.in index a5dbfee067..9acd0a3dc8 100644 --- a/samples/exec/Makefile.in +++ b/samples/exec/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/exec PROGRAM=exec -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/font/Makefile.in b/samples/font/Makefile.in index 2a7121c675..69124b152c 100644 --- a/samples/font/Makefile.in +++ b/samples/font/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/font PROGRAM=font -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/grid/Makefile.in b/samples/grid/Makefile.in index 756d62e454..6016cb4d70 100644 --- a/samples/grid/Makefile.in +++ b/samples/grid/Makefile.in @@ -7,7 +7,10 @@ program_dir = samples/grid PROGRAM=grid -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) + diff --git a/samples/help/Makefile.in b/samples/help/Makefile.in index a335c6fbde..ef4f2ae6a7 100644 --- a/samples/help/Makefile.in +++ b/samples/help/Makefile.in @@ -15,7 +15,8 @@ program_dir = samples/help PROGRAM=help -OBJECTS=demo.o +OBJECTS =demo.o +DEPFILES=demo.d DATADIRS=doc DATAFILES=doc.cnt doc.hlp doc.hpj doc.tex doc.zip back.gif forward.gif \ @@ -42,4 +43,4 @@ DATAFILES=doc.cnt doc.hlp doc.hpj doc.tex doc.zip back.gif forward.gif \ include ../../src/makeprog.env - +-include $(DEPFILES) diff --git a/samples/image/Makefile.in b/samples/image/Makefile.in index edb6750994..a492da3329 100644 --- a/samples/image/Makefile.in +++ b/samples/image/Makefile.in @@ -17,7 +17,9 @@ DATAFILES = horse.png horse.jpg horse.bmp horse.gif horse.pcx horse.pnm horse.ti PROGRAM=image -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/internat/Makefile.in b/samples/internat/Makefile.in index 37fb5e1432..930041b9f1 100644 --- a/samples/internat/Makefile.in +++ b/samples/internat/Makefile.in @@ -21,7 +21,9 @@ DATADIRS=fr de ru PROGRAM=internat -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/joytest/Makefile.in b/samples/joytest/Makefile.in index 7cf10698fb..e4424b4889 100644 --- a/samples/joytest/Makefile.in +++ b/samples/joytest/Makefile.in @@ -9,7 +9,9 @@ DATAFILES=gun.wav PROGRAM=joytest -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/layout/Makefile.in b/samples/layout/Makefile.in index 7df417f153..0c0d4faceb 100644 --- a/samples/layout/Makefile.in +++ b/samples/layout/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/layout PROGRAM=layout -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/listctrl/Makefile.in b/samples/listctrl/Makefile.in index ccc6112cca..0539e53e27 100644 --- a/samples/listctrl/Makefile.in +++ b/samples/listctrl/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/listctrl PROGRAM=listtest -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/mdi/Makefile.in b/samples/mdi/Makefile.in index a577c37004..e9e1e6047a 100644 --- a/samples/mdi/Makefile.in +++ b/samples/mdi/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/mdi PROGRAM=mdi -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/memcheck/Makefile.in b/samples/memcheck/Makefile.in index a78ba2a093..35e8a97623 100644 --- a/samples/memcheck/Makefile.in +++ b/samples/memcheck/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/memcheck PROGRAM=memcheck -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/menu/Makefile.in b/samples/menu/Makefile.in index 5722b20942..d3e5ef4c31 100644 --- a/samples/menu/Makefile.in +++ b/samples/menu/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/menu PROGRAM=menu -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/minifram/Makefile.in b/samples/minifram/Makefile.in index 3dd472ccfa..3eb87d9294 100644 --- a/samples/minifram/Makefile.in +++ b/samples/minifram/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/minifram PROGRAM=minifram -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/minimal/Makefile.in b/samples/minimal/Makefile.in index 7185ea5865..7c63b14e74 100644 --- a/samples/minimal/Makefile.in +++ b/samples/minimal/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/minimal PROGRAM=minimal -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/newgrid/Makefile.in b/samples/newgrid/Makefile.in index fd988e6a48..8634d336c7 100644 --- a/samples/newgrid/Makefile.in +++ b/samples/newgrid/Makefile.in @@ -17,7 +17,9 @@ DATAFILES = PROGRAM=griddemo -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/notebook/Makefile.in b/samples/notebook/Makefile.in index 58b5cda979..18deaf142d 100644 --- a/samples/notebook/Makefile.in +++ b/samples/notebook/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/notebook PROGRAM=notebook -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/png/Makefile.in b/samples/png/Makefile.in index b1ee8a9cfd..0b26daaa83 100644 --- a/samples/png/Makefile.in +++ b/samples/png/Makefile.in @@ -17,7 +17,9 @@ DATAFILES = julian.png paint16.png paint.png PROGRAM=pngdemo -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/printing/Makefile.in b/samples/printing/Makefile.in index c4ed3a7da8..e6c7554631 100644 --- a/samples/printing/Makefile.in +++ b/samples/printing/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/printing PROGRAM=printing -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/proplist/Makefile.in b/samples/proplist/Makefile.in index d55ad0cd7c..6ef44b6622 100644 --- a/samples/proplist/Makefile.in +++ b/samples/proplist/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/proplist PROGRAM=proplist -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/propsize/Makefile.in b/samples/propsize/Makefile.in index 93ce47b016..5b66b84b24 100644 --- a/samples/propsize/Makefile.in +++ b/samples/propsize/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/propsize PROGRAM=propsize -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/resource/Makefile.in b/samples/resource/Makefile.in index 88288c7bc2..a58d4068b0 100644 --- a/samples/resource/Makefile.in +++ b/samples/resource/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/resource PROGRAM=resource -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/richedit/Makefile.in b/samples/richedit/Makefile.in index f100246496..a02a967a22 100644 --- a/samples/richedit/Makefile.in +++ b/samples/richedit/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/richedit PROGRAM=wxLayout -OBJECTS=$(PROGRAM).o kbList.o wxllist.o wxlparser.o wxlwindow.o +OBJECTS =$(PROGRAM).o kbList.o wxllist.o wxlparser.o wxlwindow.o +DEPFILES=$(PROGRAM).d kbList.d wxllist.d wxlparser.d wxlwindow.d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/rotate/Makefile.in b/samples/rotate/Makefile.in index 4bc40b8e52..ee925d75cc 100644 --- a/samples/rotate/Makefile.in +++ b/samples/rotate/Makefile.in @@ -15,9 +15,11 @@ program_dir = samples/rotate PROGRAM=rotate -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d DATAFILES=kclub.bmp include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/sashtest/Makefile.in b/samples/sashtest/Makefile.in index 5e2670d751..e72211ea19 100644 --- a/samples/sashtest/Makefile.in +++ b/samples/sashtest/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/sashtest PROGRAM=sashtest -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/scroll/Makefile.in b/samples/scroll/Makefile.in index db745e34d4..2ddc558688 100644 --- a/samples/scroll/Makefile.in +++ b/samples/scroll/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/scroll PROGRAM=scroll -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/scrollsub/Makefile.in b/samples/scrollsub/Makefile.in index 9e145a5cd1..6a0d0a081d 100644 --- a/samples/scrollsub/Makefile.in +++ b/samples/scrollsub/Makefile.in @@ -15,7 +15,9 @@ program_dir = samples/scrollsub PROGRAM=scrollsub -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/splitter/Makefile.in b/samples/splitter/Makefile.in index b00d31b678..886ffb457c 100644 --- a/samples/splitter/Makefile.in +++ b/samples/splitter/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/splitter PROGRAM=splitter -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/statbar/Makefile.in b/samples/statbar/Makefile.in index 5ccd8fc66b..1b18e7ce7e 100644 --- a/samples/statbar/Makefile.in +++ b/samples/statbar/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/statbar PROGRAM=statbar -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/tab/Makefile.in b/samples/tab/Makefile.in index 26b17cdaae..c8b6b06bf0 100644 --- a/samples/tab/Makefile.in +++ b/samples/tab/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/tab PROGRAM=tab -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/text/Makefile.in b/samples/text/Makefile.in index 95905cc42a..23e2948bd5 100644 --- a/samples/text/Makefile.in +++ b/samples/text/Makefile.in @@ -13,10 +13,11 @@ top_srcdir = @top_srcdir@/.. top_builddir = ../.. program_dir = samples/text - PROGRAM=text -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/thread/Makefile.in b/samples/thread/Makefile.in index 6df1617e75..045479aaaf 100644 --- a/samples/thread/Makefile.in +++ b/samples/thread/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/thread PROGRAM=thread -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/toolbar/Makefile.in b/samples/toolbar/Makefile.in index b16304b995..30f2e9d1e1 100644 --- a/samples/toolbar/Makefile.in +++ b/samples/toolbar/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/toolbar PROGRAM=toolbar -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/treectrl/Makefile.in b/samples/treectrl/Makefile.in index 5a08e1e427..81bbcbaf6e 100644 --- a/samples/treectrl/Makefile.in +++ b/samples/treectrl/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/treectrl PROGRAM=treectrl -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/treelay/Makefile.in b/samples/treelay/Makefile.in index 2e838aee16..42fc62968c 100644 --- a/samples/treelay/Makefile.in +++ b/samples/treelay/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/treelay PROGRAM=treelay -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/typetest/Makefile.in b/samples/typetest/Makefile.in index fff8979e53..773de3512a 100644 --- a/samples/typetest/Makefile.in +++ b/samples/typetest/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/typetest PROGRAM=typetest -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/validate/Makefile.in b/samples/validate/Makefile.in index fc7bd3037f..ec9b4b464a 100644 --- a/samples/validate/Makefile.in +++ b/samples/validate/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/validate PROGRAM=validate -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/widgets/Makefile.in b/samples/widgets/Makefile.in index 385dedfdfc..1ee7445ae7 100644 --- a/samples/widgets/Makefile.in +++ b/samples/widgets/Makefile.in @@ -15,17 +15,29 @@ program_dir = samples/widgets PROGRAM=widgets -OBJECTS=button.o \ - combobox.o \ - gauge.o \ - listbox.o \ - notebook.o \ - radiobox.o \ - slider.o \ - spinbtn.o \ - static.o \ - textctrl.o \ - widgets.o +OBJECTS =button.o \ + combobox.o \ + gauge.o \ + listbox.o \ + notebook.o \ + radiobox.o \ + slider.o \ + spinbtn.o \ + static.o \ + textctrl.o \ + widgets.o +DEPFILES=button.d \ + combobox.d \ + gauge.d \ + listbox.d \ + notebook.d \ + radiobox.d \ + slider.d \ + spinbtn.d \ + static.d \ + textctrl.d \ + widgets.d include ../../src/makeprog.env +-include $(DEPFILES) diff --git a/samples/wizard/Makefile.in b/samples/wizard/Makefile.in index a593751f88..1ab8e93cf1 100644 --- a/samples/wizard/Makefile.in +++ b/samples/wizard/Makefile.in @@ -7,7 +7,9 @@ program_dir = samples/wizard PROGRAM=wizard -OBJECTS=$(PROGRAM).o +OBJECTS =$(PROGRAM).o +DEPFILES=$(PROGRAM).d include ../../src/makeprog.env +-include $(DEPFILES)