summaryrefslogtreecommitdiffstats
path: root/utils/regtools/lib/Makefile
blob: d7d6c1b07a07d95234b90dab016ee490f6416934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC?=gcc
CXX?=g++
AR?=ar
INCLUDE=../include/
CXXFLAGS=-Wall -O2 `xml2-config --cflags` -g -fPIC -I$(INCLUDE)
LIB=libsocdesc.a
SRC=$(wildcard *.c)
SRCXX=$(wildcard *.cpp)
OBJ=$(SRCXX:.cpp=.o)

all: $(LIB) $(EXEC)

%.o: %.cpp
	$(CXX) $(CXXFLAGS) -c -o $@ $<

$(LIB): $(OBJ)
	$(AR) rcs $@ $^

clean:
	rm -rf $(OBJ) $(LIB)