summaryrefslogtreecommitdiff
path: root/note_compiler/plugin_factory/Makefile
blob: 54463276284a201ce0305ea8c33169e581122afc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
CXX=g++
CFLAGS=-Wall -fpic -O2
CXXFLAGS=$(CFLAGS)
LDFLAGS=-shared -fpic  -Wl,-soname,libmystuff.so.1 -lc

OBJ=envelope.o filter.o note_skel.o infile.o programs.o
LIB=result.so

DEPENDFILE = .depend


SRC = $(OBJ:%.o=%.cpp)

all: $(LIB)


$(LIB): $(OBJ)
	$(CXX) $(CXXFLAGS) -o $(LIB) $(OBJ) $(LDFLAGS)
	

depend dep: $(SRC)
	$(CC) -MM $(SRC) > $(DEPENDFILE)

-include $(DEPENDFILE)


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

.PHONY: clean dep depend

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