sourcehook/test/Makefile
branchsourcemm-1.6.0
changeset 428 40a9d2f61121
parent 370 4dc28ab1c722
child 429 cadecde4b802
     1.1 --- a/sourcehook/test/Makefile	Thu Oct 04 19:46:28 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,63 +0,0 @@
     1.4 -#(C)2004-2007 SourceMM Development Team
     1.5 -# Makefile written by David "BAILOPAN" Anderson and Pavol Marko
     1.6 -
     1.7 -OPT_FLAGS = -O3 -funroll-loops -s -pipe
     1.8 -DEBUG_FLAGS = -g -ggdb3
     1.9 -CPP = gcc
    1.10 -LINK = -lstdc++
    1.11 -INCLUDE = -I. -I..
    1.12 -MAX_PARAMS=20
    1.13 -
    1.14 -BINARY = sourcehook_test
    1.15 -OBJECTS = main.cpp sourcehook.cpp $(shell ls -t test*.cpp)
    1.16 -HEADERS = ../sh_list.h ../sh_tinyhash.h ../sh_memory.h ../sh_string.h ../sh_vector.h ../sourcehook_impl.h ../FastDelegate.h ../sourcehook.h ../sh_memfuncinfo.h
    1.17 -
    1.18 -ifeq "$(DEBUG)" "true"
    1.19 -	BIN_DIR = Debug
    1.20 -	CFLAGS = $(DEBUG_FLAGS)
    1.21 -else
    1.22 -	BIN_DIR = Release
    1.23 -	CFLAGS = $(OPT_FLAGS)
    1.24 -endif
    1.25 -
    1.26 -CFLAGS += -Wall
    1.27 -# Also, enable SH_ASSERT
    1.28 -CFLAGS += -DSH_DEBUG
    1.29 -
    1.30 -OBJ_LINUX := $(OBJECTS:%.cpp=$(BIN_DIR)/%.o)
    1.31 -	
    1.32 -
    1.33 -default: all
    1.34 -
    1.35 -$(BIN_DIR)/%.o: %.cpp $(HEADERS)
    1.36 -	$(CPP) $(INCLUDE) $(CFLAGS) -o $@ -c $<
    1.37 -
    1.38 -../sourcehook.h: ../generate/sourcehook.hxx
    1.39 -	(cd ../generate; ./shworker.bin iter sourcehook.hxx sourcehook.h $(MAX_PARAMS); cp sourcehook.h ..)
    1.40 -
    1.41 -../sourcehook.hxx: ../generate/sh_memfuncinfo.hxx
    1.42 -	(cd ../generate; ./shworker.bin iter sh_memfuncinfo.hxx sh_memfuncinfo.h $(MAX_PARAMS); cp sh_memfuncino.h ..)
    1.43 -
    1.44 -../FastDelegate.hxx: ../generate/FastDelegate.hxx
    1.45 -	(cd ../generate; ./shworker.bin iter FastDelegate.hxx FastDelegate.h $(MAX_PARAMS); cp FastDelegate.h ..)
    1.46 -	
    1.47 -debug:
    1.48 -	$(MAKE) all DEBUG=true
    1.49 -	
    1.50 -all:
    1.51 -	mkdir -p $(BIN_DIR)
    1.52 -	ln -sf ../sourcehook.cpp sourcehook.cpp
    1.53 -	$(MAKE) $(BINARY)
    1.54 -	rm -f $(BINARY)
    1.55 -	rm -f sourcehook.cpp
    1.56 -	ln -sf $(BIN_DIR)/$(BINARY) $(BINARY)
    1.57 -
    1.58 -
    1.59 -$(BINARY): $(OBJ_LINUX)
    1.60 -	$(CPP) $(INCLUDE) $(CFLAGS) $(OBJ_LINUX) $(LINK) -o$(BIN_DIR)/$(BINARY)
    1.61 -
    1.62 -clean:
    1.63 -	rm -rf Release/*.o
    1.64 -	rm -rf Release/$(BINARY)
    1.65 -	rm -rf Debug/*.o
    1.66 -	rm -rf Debug/$(BINARY)