Makefile updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-08-14 11:14:39 +00:00
parent 549c6f67f9
commit b1683d3899
46 changed files with 140 additions and 90 deletions

View File

@@ -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