1999-08-10 16:08:24 -04:00
|
|
|
# Make environment for making samples on Unix
|
|
|
|
|
1999-08-11 13:40:09 -04:00
|
|
|
# Clears all default suffixes
|
|
|
|
.SUFFIXES: .o .cpp .c .cxx
|
|
|
|
|
1999-08-22 18:43:58 -04:00
|
|
|
# The binary program extension, if any, including dots (e.g. '.exe')
|
|
|
|
PROGRAM_EXT = @PROGRAM_EXT@
|
|
|
|
BIN_PROGRAM = $(PROGRAM)$(PROGRAM_EXT)
|
2000-03-09 15:18:59 -05:00
|
|
|
RES_PROGRAM = $(PROGRAM)_resources.o
|
|
|
|
RES_PROGRAM_OPT = @RESPROGRAM@
|
1999-08-22 18:43:58 -04:00
|
|
|
|
1999-08-11 13:40:09 -04:00
|
|
|
.c.o :
|
2000-07-15 15:51:35 -04:00
|
|
|
$(CCC) -c $(CFLAGS) $(APPEXTRADEFS) -o $@ $<
|
1999-08-11 13:40:09 -04:00
|
|
|
|
|
|
|
.cpp.o :
|
2000-07-15 15:51:35 -04:00
|
|
|
$(CC) -c $(CPPFLAGS) $(APPEXTRADEFS) -o $@ $<
|
1999-08-11 13:40:09 -04:00
|
|
|
|
|
|
|
.cxx.o :
|
2000-07-15 15:51:35 -04:00
|
|
|
$(CC) -c $(CPPFLAGS) $(APPEXTRADEFS) -o $@ $<
|
1999-08-11 13:40:09 -04:00
|
|
|
|
2000-01-14 17:24:27 -05:00
|
|
|
# the comment at the end of the next line is needed because otherwise autoconf
|
|
|
|
# would remove this line completely - it contains a built-in hack to remove
|
|
|
|
# any VPATH assignment not containing ':'
|
|
|
|
VPATH = @PATH_IFS@$(top_srcdir)/$(program_dir) # ':' for autoconf
|
1999-08-14 07:14:39 -04:00
|
|
|
|
1999-08-14 05:41:49 -04:00
|
|
|
# Set defaults from configure
|
|
|
|
include $(top_builddir)/src/make.env
|
1999-08-10 16:08:24 -04:00
|
|
|
|
1999-08-22 18:43:58 -04:00
|
|
|
all: $(BIN_PROGRAM) install_dirs install_data
|
1999-08-10 16:08:24 -04:00
|
|
|
|
2000-03-09 15:18:59 -05:00
|
|
|
$(BIN_PROGRAM): $(OBJECTS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(RES_PROGRAM_OPT)
|
|
|
|
$(CC) $(LDFLAGS) -o $(BIN_PROGRAM) $(OBJECTS) $(LDLIBS) $(LIBRARIES) $(RES_PROGRAM_OPT)
|
|
|
|
|
|
|
|
$(RES_PROGRAM): $(PROGRAM).rc
|
|
|
|
$(RESCOMP) $(RCINPUTSWITCH) $(top_srcdir)/$(program_dir)/$(PROGRAM).rc $(RCOUTPUTSWITCH) $(PROGRAM)_resources.o $(RESFLAGS)
|
1999-08-10 16:08:24 -04:00
|
|
|
|
1999-08-14 07:14:39 -04:00
|
|
|
install_dirs:
|
|
|
|
@list='$(DATADIRS)'; for p in $$list; do \
|
|
|
|
mkdir -p $(top_builddir)/$(program_dir)/$$p; \
|
|
|
|
done
|
|
|
|
|
|
|
|
install_data:
|
|
|
|
@list='$(DATAFILES)'; for p in $$list; do \
|
1999-08-21 15:14:58 -04:00
|
|
|
if test ! -s $(top_builddir)/$(program_dir)/$$p; then \
|
1999-10-27 13:25:50 -04:00
|
|
|
cp -pRf $(top_srcdir)/$(program_dir)/$$p $(top_builddir)/$(program_dir)/$$p; \
|
1999-08-14 07:14:39 -04:00
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
1999-08-10 16:08:24 -04:00
|
|
|
clean:
|
2000-03-09 15:18:59 -05:00
|
|
|
rm -f $(OBJECTS) $(BIN_PROGRAM) $(RES_PROGRAM) core
|