]>
Commit | Line | Data |
---|---|---|
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 |
15 | VPATH = :$(top_srcdir)/$(program_dir) |
16 | ||
549c6f67 RR |
17 | # Set defaults from configure |
18 | include $(top_builddir)/src/make.env | |
8e877c19 | 19 | |
b1683d38 | 20 | all: $(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 |
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 | ||
8e877c19 RR |
37 | clean: |
38 | rm -f $(OBJECTS) $(PROGRAM) core |