add general gcc makefiles

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@257 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2005-09-24 23:08:48 +00:00
parent 4043617da0
commit c6e143aba7
7 changed files with 227 additions and 0 deletions

31
test/flex_string/Makefile Executable file
View file

@ -0,0 +1,31 @@
CPP = g++
CC = gcc
OBJ = main.o
LINKOBJ = main.o
CXXINCS = -I./../../include
CXXFLAGS = $(CXXINCS) -O2 -DNDEBUG
BIN = main-gcc.exe
RM = rm -f
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
.PHONY: all all-before all-after clean clean-custom
all: all-before $(BIN) all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o main-gcc.exe $(LIBS)
check_tmp:
@$(CHK_DIR_EXISTS) "" $(MKDIR) "tmp"
main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)