File: Makefile

package info (click to toggle)
liblockfile 0.1-4
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 80 kB
  • ctags: 29
  • sloc: ansic: 306; makefile: 90; sh: 50
file content (20 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

VER	= 0.1

CFLAGS	= -fPIC -Wall -O2 -I. -D_REENTRANT -D_GNU_SOURCE

ALL:	liblockfile.so.$(VER) nfslock.so.$(VER)

liblockfile.a:	lockfile.o
		ar rv liblockfile.a lockfile.o

liblockfile.so.$(VER): liblockfile.a
		$(CC) -fPIC -shared -Wl,-soname,liblockfile.so.0 \
			-o liblockfile.so.$(VER) lockfile.o -lc

nfslock.so.$(VER):	nfslock.o
		$(CC) -fPIC -shared -Wl,-soname,nfslock.so.0 \
			-o nfslock.so.$(VER) nfslock.o

clean:
	rm -f *.a *.o *.so *.so.*