]> git.saurik.com Git - wxWidgets.git/blob - src/makeprog.env.in
EMX compilation,
[wxWidgets.git] / src / makeprog.env.in
1 # Make environment for making samples on Unix
2
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
15 VPATH = :$(top_srcdir)/$(program_dir)
16
17 # Set defaults from configure
18 include $(top_builddir)/src/make.env
19
20 all: $(PROGRAM) install_dirs install_data
21
22 $(PROGRAM): $(OBJECTS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@
23 $(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) $(EXTRALIBS) $(LDLIBS)
24
25 install_dirs:
26 @list='$(DATADIRS)'; for p in $$list; do \
27 mkdir -p $(top_builddir)/$(program_dir)/$$p; \
28 done
29
30 install_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
37 clean:
38 rm -f $(OBJECTS) $(PROGRAM) core