############################################################################# # Makefile for building ../../../../../lib/libta_common_csr.a # Generated by tmake; # Project: ta_common/ta_common # Template: lib ############################################################################# ####### Compiler, tools and options CC = gcc CXX = g++ CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD INCPATH = -I../../../../../src/ta_common -I../../../../../include AR = ar cqs RANLIB = MOC = $(QTDIR)/bin/moc UIC = $(QTDIR)/bin/uic TAR = tar -cf GZIP = gzip -9f ####### Support for 64-bit systems ifeq ($(shell uname -m), x86_64) CFLAGS += -march=x86-64 -m64 -D__64BIT__ CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ endif ####### Apply additional overruling user flags, if any CFLAGS += $(CUSERFLAGS) CXXFLAGS += $(CUSERFLAGS) ####### Files HEADERS = SOURCES = ../../../../../src/ta_common/ta_global.c \ ../../../../../src/ta_common/ta_retcode.c \ ../../../../../src/ta_common/ta_version.c OBJECTS = ../../../../../temp/csr/ta_global.o \ ../../../../../temp/csr/ta_retcode.o \ ../../../../../temp/csr/ta_version.o INTERFACES = UICDECLS = UICIMPLS = SRCMOC = OBJMOC = DIST = TARGET = ../../../../../lib/libta_common_csr.a INTERFACE_DECL_PATH = . ####### Implicit rules .SUFFIXES: .cpp .cxx .cc .C .c .cpp.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .cxx.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .cc.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .C.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .c.o: $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< ####### Build rules all: $(TARGET) staticlib: $(TARGET) $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) -rm -f $(TARGET) $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) moc: $(SRCMOC) clean: -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) -rm -f *~ core ####### Sub-libraries ###### Combined headers ####### Compile ../../../../../temp/csr/ta_global.o: ../../../../../src/ta_common/ta_global.c $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_global.o ../../../../../src/ta_common/ta_global.c ../../../../../temp/csr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c ../../../../../temp/csr/ta_version.o: ../../../../../src/ta_common/ta_version.c $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_version.o ../../../../../src/ta_common/ta_version.c