summaryrefslogtreecommitdiff
path: root/lingucomponent/source/thesaurus/mythes/Makefile
blob: b1d811296714051330c52740b7ccc39691b5e29b (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
35
36
37
38
39

CXX=g++

CXXFLAGS= -O2 -Wall -ansi -pedantic -I.

LDFLAGS=-L. -lmythes

LIBS=libmythes.a

AR=ar rc
RANLIB=ranlib

OBJS = mythes.o 

all: example

libmythes.a: $(OBJS)
	$(AR) $@ $(OBJS)
	-@ ($(RANLIB) $@ || true) >/dev/null 2>&1

example: example.o $(LIBS)
	$(CXX) $(CXXFLAGS) -o $@ example.o $(LDFLAGS)

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

clean:
	rm -f *.o *~ example libthes.a

distclean:	clean

depend:
	makedepend -- $(CXXFLAGS) -- *.[ch]xx

# DO NOT DELETE THIS LINE -- make depend depends on it.

mythes.o: mythes.hxx
example.o: mythes.hxx