]> git.saurik.com Git - wxWidgets.git/blob - src/makeprog.env.in
Fixed remaining int vs. long warnings.
[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 # The binary program extension, if any, including dots (e.g. '.exe')
7 PROGRAM_EXT = @PROGRAM_EXT@
8 BIN_PROGRAM = $(PROGRAM)$(PROGRAM_EXT)
9 RES_PROGRAM = $(PROGRAM)_resources.o
10 RES_PROGRAM_OPT = @RESPROGRAM@
11
12 .c.o :
13 $(CCC) -c $(CFLAGS) -o $@ $<
14
15 .cpp.o :
16 $(CC) -c $(CPPFLAGS) -o $@ $<
17
18 .cxx.o :
19 $(CC) -c $(CPPFLAGS) -o $@ $<
20
21 # the comment at the end of the next line is needed because otherwise autoconf
22 # would remove this line completely - it contains a built-in hack to remove
23 # any VPATH assignment not containing ':'
24 VPATH = @PATH_IFS@$(top_srcdir)/$(program_dir) # ':' for autoconf
25
26 # Set defaults from configure
27 include $(top_builddir)/src/make.env
28
29 all: $(BIN_PROGRAM) install_dirs install_data
30
31 $(BIN_PROGRAM): $(OBJECTS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(RES_PROGRAM_OPT)
32 $(CC) $(LDFLAGS) -o $(BIN_PROGRAM) $(OBJECTS) $(LDLIBS) $(LIBRARIES) $(RES_PROGRAM_OPT)
33
34 $(RES_PROGRAM): $(PROGRAM).rc
35 $(RESCOMP) $(RCINPUTSWITCH) $(top_srcdir)/$(program_dir)/$(PROGRAM).rc $(RCOUTPUTSWITCH) $(PROGRAM)_resources.o $(RESFLAGS)
36
37 install_dirs:
38 @list='$(DATADIRS)'; for p in $$list; do \
39 mkdir -p $(top_builddir)/$(program_dir)/$$p; \
40 done
41
42 install_data:
43 @list='$(DATAFILES)'; for p in $$list; do \
44 if test ! -s $(top_builddir)/$(program_dir)/$$p; then \
45 cp -pRf $(top_srcdir)/$(program_dir)/$$p $(top_builddir)/$(program_dir)/$$p; \
46 fi; \
47 done
48
49 clean:
50 rm -f $(OBJECTS) $(BIN_PROGRAM) $(RES_PROGRAM) core