From 044ad7c3987460ede48ff27afd6bdb0ca05a0432 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 4 Jul 2011 20:52:54 +0200 Subject: import at91lib from at91lib_20100901_softpack_1_9_v_1_0_svn_v15011 it's sad to see that atmel doesn't publish their svn repo or has a centralized location or even puts proper version/release info into the library itself --- utility/demo-fw/pc-tools/CreateDemoBin/Makefile | 69 +++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 utility/demo-fw/pc-tools/CreateDemoBin/Makefile (limited to 'utility/demo-fw/pc-tools/CreateDemoBin/Makefile') diff --git a/utility/demo-fw/pc-tools/CreateDemoBin/Makefile b/utility/demo-fw/pc-tools/CreateDemoBin/Makefile new file mode 100644 index 0000000..786da50 --- /dev/null +++ b/utility/demo-fw/pc-tools/CreateDemoBin/Makefile @@ -0,0 +1,69 @@ +# Output directories +BIN = bin +OBJ = obj + +# Compiler +CC = g++ + +# Optimization level +OPT = + +# Flags +INCLUDES = -I include +INCLUDES += -I lib/EasyBMP +INCLUDES += -I lib/regex + +CXXFLAGS = $(OPT) -g -Wall +CXXFLAGS += -D DEBUG_PROPSECTION +CXXFLAGS += -D DEBUG_DISPSECTION +CXXFLAGS += -D DEBUG_SLIDESECTION +CXXFLAGS += -D DEBUG_LINKSECTION +CXXFLAGS += -D DEBUG_CONVBMPINFO +CXXFLAGS += -D DEBUG_BEFOREPARSE +CXXFLAGS += -D DEBUG_AFTERPARSE + +# Movie flas +ifeq ($(MOVIE_MERGE), on) +CXXFLAGS += -D MOVIE_MERGE_on +endif + +LDFLAGS = $(OPT) + +# VPATH to search source +VPATH += ./src +VPATH += ./lib/EasyBMP + +# Objects +OBJS += main.o +OBJS += ScriptParse.o +OBJS += EasyBMP.o +OBJS += CreateDemoBin.o + +C_OBJECTS = $(addprefix $(OBJ)/, $(OBJS)) + +LIBS = lib/libregex.a + +# Source code + +# Output target +ifeq ($(MOVIE_MERGE), on) +TARGET = CreateMovieBin.exe +else +TARGET = CreateDemoBin.exe +endif + +# Make target +.PHONY: all +all: $(BIN) $(OBJ) $(TARGET) + +$(BIN) $(OBJ): + mkdir $@ + +$(OBJS): %.o: %.cpp + $(CC) -c $(CXXFLAGS) $(INCLUDES) $< -o $(OBJ)/$@ + +$(TARGET): $(OBJS) + $(CC) $(LDFLAGS) -o $(BIN)/$(TARGET) $(C_OBJECTS) $(LIBS) + +clean: + -rm -f $(OBJ)/*.o $(BIN)/$(TARGET) -- cgit v1.2.3