############################################################################# # Makefile for building ../lib/libmd5.a # Generated by tmake at 21:18, 2016/06/21 # Project: libmd5 # Template: lib ############################################################################# ####### Compiler, tools and options CC = gcc CXX = g++ CFLAGS = -pipe -fsigned-char -Wall -W -O2 CXXFLAGS= -pipe -fsigned-char -D_LARGEFILE_SOURCE -Wall -W -O2 INCPATH = AR = ar cqs RANLIB = MOC = moc TAR = tar -cf GZIP = gzip -9f ####### Files HEADERS = md5.h \ md5_loc.h SOURCES = md5.c OBJECTS = ../objects/md5.o SRCMOC = OBJMOC = DIST = TARGET = ../lib/libmd5.a ####### 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): $(OBJECTS) $(OBJMOC) -rm -f $(TARGET) $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) moc: $(SRCMOC) tmake: tmake libmd5.pro dist: $(TAR) libmd5.tar libmd5.pro $(SOURCES) $(HEADERS) $(DIST) $(GZIP) libmd5.tar clean: -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(TARGET) -rm -f *~ core ####### Compile ../objects/md5.o: md5.c \ md5.h \ md5_loc.h $(CC) -c $(CFLAGS) $(INCPATH) -o ../objects/md5.o md5.c