aboutsummaryrefslogtreecommitdiff
path: root/daemon/Makefile
diff options
context:
space:
mode:
authorDrew Richardson <drew.richardson@arm.com>2013-03-26 12:00:00 -0700
committerDrew Richardson <drew.richardson@arm.com>2014-12-19 15:41:32 -0800
commit1b5637426bfc10a64571c81e24019032206d651b (patch)
tree71e362be9385179b545c77205cdab612a133ca86 /daemon/Makefile
parenta01058e248133bb7c1ba0238ab380e4fac924e97 (diff)
gator: Version 5.145.14
Signed-off-by: Drew Richardson <drew.richardson@arm.com>
Diffstat (limited to 'daemon/Makefile')
-rw-r--r--daemon/Makefile55
1 files changed, 11 insertions, 44 deletions
diff --git a/daemon/Makefile b/daemon/Makefile
index 95d1809..24ee940 100644
--- a/daemon/Makefile
+++ b/daemon/Makefile
@@ -5,54 +5,21 @@
# Uncomment and define CROSS_COMPILE if it is not already defined
# CROSS_COMPILE=/path/to/cross-compiler/arm-linux-gnueabihf-
# NOTE: This toolchain uses the hardfloat abi by default. For non-hardfloat
-# targets it is necessary to add options
-# '-marm -march=armv4t -mfloat-abi=soft'.
+# targets run 'make SOFTFLOAT=1 SYSROOT=/path/to/sysroot', see
+# README_Streamline.txt for more details
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
# -mthumb-interwork is required for interworking to ARM or Thumb stdlibc
-CFLAGS = -O3 -Wall -mthumb-interwork -fno-exceptions
-CXXFLAGS = -fno-rtti
-ifeq ($(WERROR),1)
- CFLAGS += -Werror
-endif
-# -s strips the binary of debug info
-LDFLAGS = -s
-TARGET = gatord
-C_SRC = $(wildcard mxml/*.c)
-CPP_SRC = $(wildcard *.cpp)
-
-all: $(TARGET)
-
-events.xml: events_header.xml $(wildcard events-*.xml) events_footer.xml
- cat $^ > $@
-
-StreamlineSetup.cpp: events_xml.h
-ConfigurationXML.cpp: configuration_xml.h
-
-%_xml.h: %.xml escape
- ./escape $< > $@
+CFLAGS += -mthumb-interwork
-%.o: %.c *.h
- $(GCC) -c $(CFLAGS) -o $@ $<
-
-%.o: %.cpp *.h
- $(CPP) -c $(CFLAGS) $(CXXFLAGS) -o $@ $<
-
-$(TARGET): $(CPP_SRC:%.cpp=%.o) $(C_SRC:%.c=%.o)
- $(CPP) $(LDFLAGS) -o $@ $^ -lc -lrt -lpthread
- rm -f events_xml.h configuration_xml.h
-
-escape: escape.c
- gcc $^ -o $@
+ifeq ($(SOFTFLOAT),1)
+ CFLAGS += -marm -march=armv4t -mfloat-abi=soft
+ LDFLAGS += -marm -march=armv4t -mfloat-abi=soft
+endif
+ifneq ($(SYSROOT),)
+ LDFLAGS += --sysroot=$(SYSROOT)
+endif
-clean:
- rm -f *.o mxml/*.o $(TARGET) escape events.xml events_xml.h configuration_xml.h
+include common.mk