]>
Commit | Line | Data |
---|---|---|
8e877c19 RR |
1 | # Make environment for making samples on Unix |
2 | ||
48b1d0ff RR |
3 | # Clears all default suffixes |
4 | .SUFFIXES: .o .cpp .c .cxx | |
5 | ||
80d895cd HH |
6 | # The binary program extension, if any, including dots (e.g. '.exe') |
7 | PROGRAM_EXT = @PROGRAM_EXT@ | |
8 | BIN_PROGRAM = $(PROGRAM)$(PROGRAM_EXT) | |
32832908 VZ |
9 | RES_PROGRAM = $(PROGRAM)_resources.o |
10 | RES_PROGRAM_OPT = @RESPROGRAM@ | |
80d895cd | 11 | |
2f51a9ec | 12 | # To add resources to the Mac OS X applications |
7b724ca7 | 13 | LIBWX_MACRES = $(top_builddir)/lib/lib@WX_LIBRARY@-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).r |
2f51a9ec GD |
14 | LIBWX_MACRESCOMP = $(RESCOMP) $(RESFLAGS) $(LIBWX_MACRES) -o $(BIN_PROGRAM) |
15 | ||
48b1d0ff | 16 | .c.o : |
689471fc | 17 | $(CCC) -c @DEP_INFO_FLAGS@ $(CFLAGS) $(APPEXTRADEFS) -o $@ $< |
48b1d0ff RR |
18 | |
19 | .cpp.o : | |
689471fc | 20 | $(CC) -c @DEP_INFO_FLAGS@ $(CPPFLAGS) $(APPEXTRADEFS) -o $@ $< |
48b1d0ff RR |
21 | |
22 | .cxx.o : | |
689471fc | 23 | $(CC) -c @DEP_INFO_FLAGS@ $(CPPFLAGS) $(APPEXTRADEFS) -o $@ $< |
48b1d0ff | 24 | |
4e9fd9e2 SN |
25 | # the comment at the end of the next line is needed because otherwise autoconf |
26 | # would remove this line completely - it contains a built-in hack to remove | |
27 | # any VPATH assignment not containing ':' | |
28 | VPATH = @PATH_IFS@$(top_srcdir)/$(program_dir) # ':' for autoconf | |
b1683d38 | 29 | |
549c6f67 RR |
30 | # Set defaults from configure |
31 | include $(top_builddir)/src/make.env | |
8e877c19 | 32 | |
80d895cd | 33 | all: $(BIN_PROGRAM) install_dirs install_data |
8e877c19 | 34 | |
2f51a9ec | 35 | $(BIN_PROGRAM): $(OBJECTS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(RES_PROGRAM_OPT) @LIBWXMACRES@ |
32832908 | 36 | $(CC) $(LDFLAGS) -o $(BIN_PROGRAM) $(OBJECTS) $(LDLIBS) $(LIBRARIES) $(RES_PROGRAM_OPT) |
2f51a9ec | 37 | @LIBWXMACRESCOMP@ |
32832908 VZ |
38 | |
39 | $(RES_PROGRAM): $(PROGRAM).rc | |
40 | $(RESCOMP) $(RCINPUTSWITCH) $(top_srcdir)/$(program_dir)/$(PROGRAM).rc $(RCOUTPUTSWITCH) $(PROGRAM)_resources.o $(RESFLAGS) | |
8e877c19 | 41 | |
b1683d38 RR |
42 | install_dirs: |
43 | @list='$(DATADIRS)'; for p in $$list; do \ | |
44 | mkdir -p $(top_builddir)/$(program_dir)/$$p; \ | |
45 | done | |
46 | ||
47 | install_data: | |
48 | @list='$(DATAFILES)'; for p in $$list; do \ | |
ac2def68 | 49 | if test ! -s $(top_builddir)/$(program_dir)/$$p; then \ |
3e58661e | 50 | cp -pRf $(top_srcdir)/$(program_dir)/$$p $(top_builddir)/$(program_dir)/$$p; \ |
b1683d38 RR |
51 | fi; \ |
52 | done | |
53 | ||
8e877c19 | 54 | clean: |
32832908 | 55 | rm -f $(OBJECTS) $(BIN_PROGRAM) $(RES_PROGRAM) core |