Makefile updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -12,13 +12,27 @@
|
||||
.cxx.o :
|
||||
$(CC) -c $(CPPFLAGS) -o $@ $<
|
||||
|
||||
VPATH = :$(top_srcdir)/$(program_dir)
|
||||
|
||||
# Set defaults from configure
|
||||
include $(top_builddir)/src/make.env
|
||||
|
||||
all: $(PROGRAM)
|
||||
all: $(PROGRAM) install_dirs install_data
|
||||
|
||||
$(PROGRAM): $(OBJECTS) $(top_builddir)/lib/@WX_TARGET_LIBRARY@
|
||||
$(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) $(LDLIBS)
|
||||
|
||||
install_dirs:
|
||||
@list='$(DATADIRS)'; for p in $$list; do \
|
||||
mkdir -p $(top_builddir)/$(program_dir)/$$p; \
|
||||
done
|
||||
|
||||
install_data:
|
||||
@list='$(DATAFILES)'; for p in $$list; do \
|
||||
if test ! -e $(top_builddir)/$(program_dir)/Makefile.in; then \
|
||||
cp -u $(top_srcdir)/$(program_dir)/$$p $(top_builddir)/$(program_dir)/$$p; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS) $(PROGRAM) core
|
||||
|
Reference in New Issue
Block a user