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)
|
|
|
|
|
1999-08-11 13:40:09 -04:00
|
|
|
.c.o :
|
|
|
|
$(CCC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
.cpp.o :
|
|
|
|
$(CC) -c $(CPPFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
.cxx.o :
|
|
|
|
$(CC) -c $(CPPFLAGS) -o $@ $<
|
|
|
|
|
1999-08-14 07:14:39 -04:00
|
|
|
VPATH = :$(top_srcdir)/$(program_dir)
|
|
|
|
|
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
|
|
|
|
1999-08-22 18:43:58 -04:00
|
|
|
$(BIN_PROGRAM): $(OBJECTS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@
|
|
|
|
$(CC) $(LDFLAGS) -o $(BIN_PROGRAM) $(OBJECTS) $(EXTRALIBS) $(LDLIBS)
|
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-08-25 12:39:29 -04:00
|
|
|
cp -f $(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:
|
1999-08-22 18:43:58 -04:00
|
|
|
rm -f $(OBJECTS) $(BIN_PROGRAM) core
|