]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.env.in
Doc updates, wxsizer et al
[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
6.c.o :
7 $(CCC) -c $(CFLAGS) -o $@ $<
8
9.cpp.o :
10 $(CC) -c $(CPPFLAGS) -o $@ $<
11
12.cxx.o :
13 $(CC) -c $(CPPFLAGS) -o $@ $<
14
b1683d38
RR
15VPATH = :$(top_srcdir)/$(program_dir)
16
549c6f67
RR
17# Set defaults from configure
18include $(top_builddir)/src/make.env
8e877c19 19
b1683d38 20all: $(PROGRAM) install_dirs install_data
8e877c19 21
549c6f67 22$(PROGRAM): $(OBJECTS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@
42b4e99e 23 $(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) $(EXTRALIBS) $(LDLIBS)
8e877c19 24
b1683d38
RR
25install_dirs:
26 @list='$(DATADIRS)'; for p in $$list; do \
27 mkdir -p $(top_builddir)/$(program_dir)/$$p; \
28 done
29
30install_data:
31 @list='$(DATAFILES)'; for p in $$list; do \
32 if test ! -e $(top_builddir)/$(program_dir)/Makefile.in; then \
33 cp -u $(top_srcdir)/$(program_dir)/$$p $(top_builddir)/$(program_dir)/$$p; \
34 fi; \
35 done
36
8e877c19
RR
37clean:
38 rm -f $(OBJECTS) $(PROGRAM) core