1 # Make environment for making samples on Unix
3 # Clears all default suffixes
4 .SUFFIXES: .o .cpp .c .cxx
6 # The binary program extension, if any, including dots (e.g. '.exe')
7 PROGRAM_EXT = @PROGRAM_EXT@
8 BIN_PROGRAM = $(PROGRAM)$(PROGRAM_EXT)
11 $(CCC) -c $(CFLAGS) -o $@ $<
14 $(CC) -c $(CPPFLAGS) -o $@ $<
17 $(CC) -c $(CPPFLAGS) -o $@ $<
19 VPATH = :$(top_srcdir)/$(program_dir)
21 # Set defaults from configure
22 include $(top_builddir)/src/make.env
24 all: $(BIN_PROGRAM) install_dirs install_data
26 $(BIN_PROGRAM): $(OBJECTS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@
27 $(CC) $(LDFLAGS) -o $(BIN_PROGRAM) $(OBJECTS) $(EXTRALIBS) $(LDLIBS)
30 @list='$(DATADIRS)'; for p in $$list; do \
31 mkdir -p $(top_builddir)/$(program_dir)/$$p; \
35 @list='$(DATAFILES)'; for p in $$list; do \
36 if test ! -s $(top_builddir)/$(program_dir)/$$p; then \
37 cp -pRf $(top_srcdir)/$(program_dir)/$$p $(top_builddir)/$(program_dir)/$$p; \
42 rm -f $(OBJECTS) $(BIN_PROGRAM) core