diff options
author | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-24 17:16:17 +0200 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-24 17:16:17 +0200 |
commit | 6e1ff8e78958e5ea6871dca4a5ef6076fadcbcc1 (patch) | |
tree | 4e17c48118edbe073b49341d95809a8e0b2a8f80 /tools/gator/daemon/Makefile | |
parent | ed6e65a66f3bcf84dff4ff4e680096b7e40076d5 (diff) | |
parent | 09f333ed6069575a71fabc999c4dc39b6594d727 (diff) |
Merge remote-tracking branch 'armlt/3.3-armlt-gator-5.10' into stable-linux-ux500-3.3ubuntu-release-12-07ubuntu-release-12-06
Conflicts:
drivers/Kconfig
Diffstat (limited to 'tools/gator/daemon/Makefile')
-rw-r--r-- | tools/gator/daemon/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tools/gator/daemon/Makefile b/tools/gator/daemon/Makefile new file mode 100644 index 00000000000..c517a873728 --- /dev/null +++ b/tools/gator/daemon/Makefile @@ -0,0 +1,46 @@ +# +# Makefile for ARM Streamline - Gator Daemon +# + +# Uncomment and define CROSS_COMPILE if it is not already defined +# CROSS_COMPILE=/path/to/cross-compiler/arm-none-linux-gnueabi- +ARCH=arm + +CPP=$(CROSS_COMPILE)g++ +GCC=$(CROSS_COMPILE)gcc + +# -g produces debugging information +# -O3 maximum optimization +# -O0 no optimization, used for debugging +# -Wall enables most warnings +# -Werror treats warnings as errors +# -std=c++0x is the planned new c++ standard +# -std=c++98 is the 1998 c++ standard +# -march=armv5t is required to set the minimum architecture +# -mthumb-interwork is required for interworking to ARM or Thumb stdlibc +CFLAGS=-O3 -Wall -Werror -Wno-error=sequence-point +TARGET=gatord +C_SRC = $(wildcard mxml/*.c) +CPP_SRC = $(wildcard *.cpp) +TGT_OBJS = $(CPP_SRC:%.cpp=%.o) \ + $(C_SRC:%.c=%.o) + +all: $(TARGET) + +%.o: %.c *.h + $(GCC) -c $(CFLAGS) -o $@ $< + +%.o: %.cpp *.h + $(CPP) -c $(CFLAGS) -o $@ $< + +$(TARGET): convert $(TGT_OBJS) + $(CPP) -s -o $@ $(TGT_OBJS) -lc -lrt -lpthread + rm events_xml.h configuration_xml.h + +convert: + cat events_header.xml events-*\.xml events_footer.xml > events.xml + xxd -i events.xml > events_xml.h + xxd -i configuration.xml > configuration_xml.h + +clean: + rm -f *.o mxml/*.o $(TARGET) events.xml events_xml.h configuration_xml.h |