#****************************************************************************** # The Makefile of Compiling Rules for Media Save Server # Created ---------- Yin-XiaoGui, 2008-4-16 #****************************************************************************** #***************************************** # Compiling Rules #***************************************** export PUB_PATH := $(shell pwd) export CROSS_COMPILE := export ASM := $(CROSS_COMPILE)asm export AR := $(CROSS_COMPILE)ar export CC := $(CROSS_COMPILE)gcc export CXX := $(CROSS_COMPILE)g++ export LD := $(CROSS_COMPILE)ld export STRIP := $(CROSS_COMPILE)strip -s -g export RM := rm -fr export CP := cp -f export MKDIR := mkdir export CXX_OPTS := -c -g -Wall -O0 -Wno-unused-but-set-variable -fpic #***************************************** # Target Definations #***************************************** TARGET := libjthread-1.3.1.a OBJS := jmutex.o jthread.o all: $(TARGET) $(TARGET): $(OBJS) @$(AR) -r $@ $^ %.o: %.c $(CXX) $(CXX_OPTS) -o $@ $< %.o: %.cpp $(CXX) $(CXX_OPTS) -o $@ $< .PHONY: clean clean: $(RM) *.o *.lib *.out *.so *.a