2014-05-01 16:21:08 +00:00
|
|
|
CC?=gcc
|
|
|
|
CXX?=g++
|
|
|
|
AR?=ar
|
2014-12-14 10:53:55 +00:00
|
|
|
INCLUDE=../include/
|
|
|
|
CXXFLAGS=-Wall -O2 `xml2-config --cflags` -g -fPIC -I$(INCLUDE)
|
2013-06-12 23:50:14 +00:00
|
|
|
LIB=libsocdesc.a
|
|
|
|
SRC=$(wildcard *.c)
|
|
|
|
SRCXX=$(wildcard *.cpp)
|
2014-12-14 10:53:55 +00:00
|
|
|
OBJ=$(SRCXX:.cpp=.o)
|
2013-06-12 23:50:14 +00:00
|
|
|
|
|
|
|
all: $(LIB) $(EXEC)
|
|
|
|
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
$(LIB): $(OBJ)
|
|
|
|
$(AR) rcs $@ $^
|
|
|
|
|
|
|
|
clean:
|
2014-05-01 16:21:08 +00:00
|
|
|
rm -rf $(OBJ) $(LIB)
|