1 # Make environment for making samples on Unix
3 # The binary program extension, if any, including dots (e.g. '.exe')
4 PROGRAM_EXT = @PROGRAM_EXT@
5 BIN_PROGRAM = $(PROGRAM)$(PROGRAM_EXT)
6 RES_PROGRAM_OBJ = @RESPROGRAMOBJ@
9 $(CC) -c $(CFLAGS) $(APPEXTRADEFS) -o $@ $<
12 $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $<
15 $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $<
18 $(RESCOMP) -i $< -o $@ $(RESFLAGS)
21 # the comment at the end of the next line is needed because otherwise autoconf
22 # would remove this line completely - it contains a built-in hack to remove
23 # any VPATH assignment not containing ':'
24 VPATH = @PATH_IFS@$(top_srcdir)/$(program_dir) # ':' for autoconf
26 # Set defaults from configure
27 include $(top_builddir)/src/make.env
29 all: $(BIN_PROGRAM) install_dirs install_data
31 $(BIN_PROGRAM): $(OBJECTS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(RES_PROGRAM_OBJ) @LIBWXMACRES@
32 $(CXX) $(LDFLAGS) -o $(BIN_PROGRAM) $(OBJECTS) $(LDLIBS) $(LIBRARIES) $(RES_PROGRAM_OBJ)
37 @list='$(DATADIRS)'; for p in $$list; do \
38 mkdir -p $(top_builddir)/$(program_dir)/$$p; \
42 @list='$(DATAFILES)'; for p in $$list; do \
43 if test ! -s $(top_builddir)/$(program_dir)/$$p; then \
44 cp -pRf $(top_srcdir)/$(program_dir)/$$p $(top_builddir)/$(program_dir)/$$p; \
49 rm -f $(OBJECTS) $(BIN_PROGRAM) $(RES_PROGRAM_OBJ) core