Update of /cvsroot/pure-data/packages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26208
Modified Files: Makefile Log Message: got the basic framework working for compiling on each platform. Now its time to standardize the externals/build/*/makefile's
Index: Makefile =================================================================== RCS file: /cvsroot/pure-data/packages/Makefile,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Makefile 17 Nov 2005 00:06:46 -0000 1.4 --- Makefile 17 Nov 2005 01:05:23 -0000 1.5 *************** *** 13,22 **** BUILDLAYOUT_DIR = $(CWD)
- # get the platform - UNAME := $(shell uname)
# default target all: abstractions doc externals gem pd ! echo "Complete build succeeded!"
include $(BUILDLAYOUT_DIR)/Makefile.buildlayout --- 13,20 ---- BUILDLAYOUT_DIR = $(CWD)
# default target all: abstractions doc externals gem pd ! @echo "Complete build succeeded!"
include $(BUILDLAYOUT_DIR)/Makefile.buildlayout *************** *** 33,36 **** --- 31,52 ---- # OBJECTS_DEST=$(OBJECTS_DEST)
+ #------------------------------------------------------------------------------ + # which OS to compile for + UNAME := $(shell uname -s) + ifeq ($(UNAME),Linux) + OS_NAME = linux + else + ifeq ($(UNAME),Darwin) + OS_NAME = darwin + else + ifeq (MINGW,$(findstring MINGW,$(UNAME))) + OS_NAME = win + else + OS_NAME = unknown + $(warning WARNING: unknown environment "$(UNAME)".) + endif + endif + endif + #==============================================================================# # *************** *** 51,58 **** #------------------------------------------------------------------------------ # externals ! externals: # doc make -f $(EXTERNALS_SRC)/build/doc/makefile $(DEST_PATHS) install
#------------------------------------------------------------------------------ --- 67,85 ---- #------------------------------------------------------------------------------ # externals ! externals: externals_$(OS_NAME) # doc make -f $(EXTERNALS_SRC)/build/doc/makefile $(DEST_PATHS) install + @echo "Making externals for $(OS_NAME) aka $(UNAME)" + make -f $(EXTERNALS_SRC)/build/$(OS_NAME)/makefile $(DEST_PATHS) install
+ # these targets are for platform-specific needs + externals_darwin: + + externals_linux: + + externals_win: + + externals_unknown: + # this target is for "everything else"
#------------------------------------------------------------------------------ *************** *** 72,76 **** make -f $(ABSTRACTIONS_SRC)/Makefile $(DEST_PATHS) clean
! clean: abstractions_clean -rm -f *~ rm -rf $(MANUALS_DEST) $(HELP_DEST) --- 99,109 ---- make -f $(ABSTRACTIONS_SRC)/Makefile $(DEST_PATHS) clean
! ! externals_clean: ! make -f $(EXTERNALS_SRC)/build/$(OS_NAME)/makefile $(DEST_PATHS) clean ! ! ! ! clean: abstractions_clean -rm -f *~ rm -rf $(MANUALS_DEST) $(HELP_DEST)