]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.env.in
Added #include "wx/setup.h" (or "wx/defs.h") before checking for
[wxWidgets.git] / src / makeprog.env.in
CommitLineData
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')
7PROGRAM_EXT = @PROGRAM_EXT@
8BIN_PROGRAM = $(PROGRAM)$(PROGRAM_EXT)
9
48b1d0ff
RR
10.c.o :
11 $(CCC) -c $(CFLAGS) -o $@ $<
12
13.cpp.o :
14 $(CC) -c $(CPPFLAGS) -o $@ $<
15
16.cxx.o :
17 $(CC) -c $(CPPFLAGS) -o $@ $<
18
b1683d38
RR
19VPATH = :$(top_srcdir)/$(program_dir)
20
549c6f67
RR
21# Set defaults from configure
22include $(top_builddir)/src/make.env
8e877c19 23
80d895cd 24all: $(BIN_PROGRAM) install_dirs install_data
8e877c19 25
80d895cd
HH
26$(BIN_PROGRAM): $(OBJECTS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@
27 $(CC) $(LDFLAGS) -o $(BIN_PROGRAM) $(OBJECTS) $(EXTRALIBS) $(LDLIBS)
8e877c19 28
b1683d38
RR
29install_dirs:
30 @list='$(DATADIRS)'; for p in $$list; do \
31 mkdir -p $(top_builddir)/$(program_dir)/$$p; \
32 done
33
34install_data:
35 @list='$(DATAFILES)'; for p in $$list; do \
ac2def68 36 if test ! -s $(top_builddir)/$(program_dir)/$$p; then \
641d87d8 37 cp -f $(top_srcdir)/$(program_dir)/$$p $(top_builddir)/$(program_dir)/$$p; \
b1683d38
RR
38 fi; \
39 done
40
8e877c19 41clean:
80d895cd 42 rm -f $(OBJECTS) $(BIN_PROGRAM) core