]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/makeprog.env.in
Make wxMMedia2 compile on VC++ 5
[wxWidgets.git] / src / makeprog.env.in
... / ...
CommitLineData
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
15VPATH = :$(top_srcdir)/$(program_dir)
16
17# Set defaults from configure
18include $(top_builddir)/src/make.env
19
20all: $(PROGRAM) install_dirs install_data
21
22$(PROGRAM): $(OBJECTS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@
23 $(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) $(EXTRALIBS) $(LDLIBS)
24
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
37clean:
38 rm -f $(OBJECTS) $(PROGRAM) core