Debian Codegraph @

Makefile

raw symbols SCIP
1
2 SRCNAME = linotify.c
3 OBJNAME = linotify.o
4 LIBNAME = inotify.so
5
6 # Gives a nice speedup but also spoils debugging on x86. Comment
7 # out this line when debugging.
8 OMIT_FRAME_POINTER = -fomit-frame-pointer
9
10 # Seach for lua .pc file
11 LUAPKG_CMD = $(shell pkg-config --list-all | grep Lua | awk 'FNR == 1 {print $$1}')
12 CFLAGS = -fPIC -O3 -Wall $(shell pkg-config "$(LUAPKG_CMD)" --cflags)
13 LFLAGS = -shared $(OMIT_FRAME_POINTER)
14 INSTALL_PATH = $(shell pkg-config "$(LUAPKG_CMD)" --variable=INSTALL_CMOD)
15
16 ## If your system doesn't have pkg-config, comment out the previous
17 ## lines and uncomment and change the following ones according to your
18 ## building enviroment.
19
20 #CFLAGS = -I/usr/include/lua5.1/ -fPIC -O3 -Wall
21 #LFLAGS = -shared $(OMIT_FRAME_POINTER)
22 #INSTALL_PATH = /usr/lib/lua/5.1
23
24 all: $(LIBNAME)
25
26 $(OBJNAME): $(SRCNAME)
27 $(CC) -o $(OBJNAME) -c $(SRCNAME) $(CFLAGS)
28
29 $(LIBNAME): $(OBJNAME)
30 $(CC) -o $(LIBNAME) -shared $(OBJNAME) $(LFLAGS)
31
32 install: $(LIBNAME)
33 install -D -s $(LIBNAME) $(DESTDIR)$(INSTALL_PATH)/$(LIBNAME)
34
35 clean:
36 $(RM) $(LIBNAME) $(OBJNAME)
37
38
39 .PHONY: all install clean