]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.env.in
wxDC scaling fix patch (Derry Bryson)
[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
80d895cd
HH
6# The binary program extension, if any, including dots (e.g. '.exe')
7PROGRAM_EXT = @PROGRAM_EXT@
8BIN_PROGRAM = $(PROGRAM)$(PROGRAM_EXT)
32832908
VZ
9RES_PROGRAM = $(PROGRAM)_resources.o
10RES_PROGRAM_OPT = @RESPROGRAM@
80d895cd 11
48b1d0ff 12.c.o :
f6bcfd97 13 $(CCC) -c $(CFLAGS) $(APPEXTRADEFS) -o $@ $<
48b1d0ff
RR
14
15.cpp.o :
f6bcfd97 16 $(CC) -c $(CPPFLAGS) $(APPEXTRADEFS) -o $@ $<
48b1d0ff
RR
17
18.cxx.o :
f6bcfd97 19 $(CC) -c $(CPPFLAGS) $(APPEXTRADEFS) -o $@ $<
48b1d0ff 20
4e9fd9e2
SN
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 ':'
24VPATH = @PATH_IFS@$(top_srcdir)/$(program_dir) # ':' for autoconf
b1683d38 25
549c6f67
RR
26# Set defaults from configure
27include $(top_builddir)/src/make.env
8e877c19 28
80d895cd 29all: $(BIN_PROGRAM) install_dirs install_data
8e877c19 30
32832908
VZ
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)
8e877c19 36
b1683d38
RR
37install_dirs:
38 @list='$(DATADIRS)'; for p in $$list; do \
39 mkdir -p $(top_builddir)/$(program_dir)/$$p; \
40 done
41
42install_data:
43 @list='$(DATAFILES)'; for p in $$list; do \
ac2def68 44 if test ! -s $(top_builddir)/$(program_dir)/$$p; then \
3e58661e 45 cp -pRf $(top_srcdir)/$(program_dir)/$$p $(top_builddir)/$(program_dir)/$$p; \
b1683d38
RR
46 fi; \
47 done
48
8e877c19 49clean:
32832908 50 rm -f $(OBJECTS) $(BIN_PROGRAM) $(RES_PROGRAM) core