]> git.saurik.com Git - wxWidgets.git/blame - src/makeprog.env.in
Updated wxColumnSorterMixin to also be able to place sort icons on the
[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
ea8628fb 6# The binary program extension, if any, including dots {e.g. '.exe'}
80d895cd 7PROGRAM_EXT = @PROGRAM_EXT@
ea8628fb
VZ
8BIN_PROGRAM = ${PROGRAM}${PROGRAM_EXT}
9RES_PROGRAM = ${PROGRAM}_resources.o
32832908 10RES_PROGRAM_OPT = @RESPROGRAM@
80d895cd 11
2f51a9ec 12# To add resources to the Mac OS X applications
ea8628fb
VZ
13LIBWX_MACRES = ${top_builddir}/lib/lib@WX_LIBRARY@-${WX_MAJOR_VERSION_NUMBER}.${WX_MINOR_VERSION_NUMBER}.r
14LIBWX_MACRESCOMP = ${RESCOMP} ${RESFLAGS} ${LIBWX_MACRES} -o ${BIN_PROGRAM}
2f51a9ec 15
48b1d0ff 16.c.o :
ea8628fb 17 ${CCC} -c @DEP_INFO_FLAGS@ ${CFLAGS} ${APPEXTRADEFS} -o $@ $<
48b1d0ff
RR
18
19.cpp.o :
ea8628fb 20 ${CC} -c @DEP_INFO_FLAGS@ ${CXXFLAGS} ${APPEXTRADEFS} -o $@ $<
48b1d0ff
RR
21
22.cxx.o :
ea8628fb 23 ${CC} -c @DEP_INFO_FLAGS@ ${CXXFLAGS} ${APPEXTRADEFS} -o $@ $<
48b1d0ff 24
4e9fd9e2
SN
25# the comment at the end of the next line is needed because otherwise autoconf
26# would remove this line completely - it contains a built-in hack to remove
27# any VPATH assignment not containing ':'
ea8628fb 28VPATH = @PATH_IFS@${top_srcdir}/${program_dir} # ':' for autoconf
b1683d38 29
549c6f67 30# Set defaults from configure
ea8628fb 31include ${top_builddir}/src/make.env
8e877c19 32
ea8628fb 33all: ${BIN_PROGRAM} install_dirs install_data
8e877c19 34
ea8628fb
VZ
35${BIN_PROGRAM}: ${OBJECTS} ${top_builddir}/lib/@WX_TARGET_LIBRARY@ ${RES_PROGRAM_OPT} @LIBWXMACRES@
36 ${CC} ${LDFLAGS} -o ${BIN_PROGRAM} ${OBJECTS} ${LDLIBS} ${LIBRARIES} ${RES_PROGRAM_OPT}
2f51a9ec 37 @LIBWXMACRESCOMP@
32832908 38
ea8628fb
VZ
39${RES_PROGRAM}: ${PROGRAM}.rc
40 ${RESCOMP} ${RCINPUTSWITCH} ${top_srcdir}/${program_dir}/${PROGRAM}.rc ${RCOUTPUTSWITCH} ${PROGRAM}_resources.o ${RESFLAGS}
8e877c19 41
b1683d38 42install_dirs:
ea8628fb
VZ
43 @list='${DATADIRS}'; for p in $$list; do \
44 mkdir -p ${top_builddir}/${program_dir}/$$p; \
b1683d38
RR
45 done
46
47install_data:
ea8628fb
VZ
48 @list='${DATAFILES}'; for p in $$list; do \
49 if test ! -s ${top_builddir}/${program_dir}/$$p; then \
50 cp -pRf ${top_srcdir}/${program_dir}/$$p ${top_builddir}/${program_dir}/$$p; \
b1683d38
RR
51 fi; \
52 done
53
8e877c19 54clean:
ea8628fb 55 rm -f ${OBJECTS} ${BIN_PROGRAM} ${RES_PROGRAM} core