source: subversion/applications/lib/ccoord/Makefile @ 34562

Last change on this file since 34562 was 14486, checked in by frederik, 10 years ago

fix "make clean", add -fPIC

File size: 411 bytes
Line 
1CXXFLAGS = -g -fPIC
2OBJ = OSRef.o LatLng.o util.o
3TESTOBJ = test.o
4CXX = g++
5
6all: libccoord.a libccoord.so
7
8libccoord.a: $(OBJ)
9        ar rv libccoord.a $(OBJ) 
10
11libccoord.so: $(OBJ)
12        $(CXX) -shared -o libccoord.so $(OBJ)
13
14test: $(TESTOBJ) libccoord.a
15        g++ -o test $(TESTOBJ) libccoord.a
16
17clean:
18        rm -f *.o *.a
19
20OSRef.o : OSRef.h LatLng.h util.h RefEll.h
21LatLng.o : OSRef.h LatLng.h util.h RefEll.h
22util.o : util.h
23
Note: See TracBrowser for help on using the repository browser.