File: Makefile

package info (click to toggle)
libgda5 5.2.10-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 76,168 kB
  • sloc: ansic: 495,319; xml: 10,486; yacc: 5,165; sh: 4,451; makefile: 4,095; php: 1,416; java: 1,300; javascript: 1,298; python: 896; sql: 879; perl: 116
file content (29 lines) | stat: -rw-r--r-- 920 bytes parent folder | download | duplicates (8)
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
CFLAGS = -Wall -g -DGDA_DISABLE_DEPRECATED `pkg-config --cflags libgda-ui-5.0`
LDFLAGS = `pkg-config --libs libgda-ui-5.0`
PLUGINSDIR = `pkg-config --variable=pluginsdir libgda-ui-5.0`

all: custom-plugin.so

custom-plugin.so: libmain.o custom-entry-password.o

libmain.o: libmain.c
	$(CC) -fPIC -rdynamic $(CFLAGS) -c -o libmain.o libmain.c

custom-entry-password.o: custom-entry-password.c custom-entry-password.h
	$(CC) -fPIC -rdynamic $(CFLAGS) -c -o custom-entry-password.o custom-entry-password.c

custom-plugin.so: libmain.o custom-entry-password.o
	$(CC) -shared -Wl,-soname,custom-plugin.so -o custom-plugin.so libmain.o custom-entry-password.o

install: custom-plugin.so custom-entry-password.xml
	cp custom-plugin.so $(PLUGINSDIR)/
	cp custom-entry-password.xml $(PLUGINSDIR)/

uninstall:
	rm $(PLUGINSDIR)/custom-plugin.so
	rm $(PLUGINSDIR)/custom-entry-password.xml

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