]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/makeprog.env.in
implemented cursors cache, so that cursors are not loaded from file again and again
[wxWidgets.git] / src / makeprog.env.in
... / ...
CommitLineData
1# Make environment for making samples on Unix
2
3# The binary program extension, if any, including dots (e.g. '.exe')
4PROGRAM_EXT = @PROGRAM_EXT@
5BIN_PROGRAM = $(PROGRAM)$(PROGRAM_EXT)
6RES_PROGRAM_OBJ = @RESPROGRAMOBJ@
7
8%.o : %.c
9 $(CC) -c $(CFLAGS) $(APPEXTRADEFS) -o $@ $<
10
11%.o : %.cpp
12 $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $<
13
14%.o : %.cxx
15 $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $<
16
17%_resources.o : %.rc
18 $(RESCOMP) -i $< -o $@ $(RESFLAGS)
19
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 ':'
24VPATH = @PATH_IFS@$(top_srcdir)/$(program_dir) # ':' for autoconf
25
26# Set defaults from configure
27include $(top_builddir)/src/make.env
28
29all: $(BIN_PROGRAM) install_dirs install_data
30
31$(BIN_PROGRAM): $(OBJECTS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(RES_PROGRAM_OBJ) @LIBWXMACRES@
32 $(CXX) $(LDFLAGS) -o $(BIN_PROGRAM) $(OBJECTS) $(LDLIBS) $(LIBRARIES) $(RES_PROGRAM_OBJ)
33 @LIBWXMACRESCOMP@
34
35
36install_dirs:
37 @list='$(DATADIRS)'; for p in $$list; do \
38 mkdir -p $(top_builddir)/$(program_dir)/$$p; \
39 done
40
41install_data:
42 @list='$(DATAFILES)'; for p in $$list; do \
43 if test ! -s $(top_builddir)/$(program_dir)/$$p; then \
44 cp -pRf $(top_srcdir)/$(program_dir)/$$p $(top_builddir)/$(program_dir)/$$p; \
45 fi; \
46 done
47
48clean:
49 rm -f $(OBJECTS) $(DEPFILES) $(BIN_PROGRAM) $(RES_PROGRAM_OBJ) core
50