File: Makefile

package info (click to toggle)
pcb-rnd 3.1.7b-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,108 kB
  • sloc: ansic: 213,400; yacc: 6,241; sh: 4,698; awk: 3,016; makefile: 2,254; lex: 1,166; python: 519; xml: 261; lisp: 154; tcl: 67; perl: 34; javascript: 6; ruby: 5
file content (36 lines) | stat: -rw-r--r-- 806 bytes parent folder | download | duplicates (5)
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
### config part ###

# edit this to point to pcb-rnd svn checkout's trunk/ (or the release
# tarball's root). Assumes the pcb-rnd source is configured.
TRUNK=../../../..

# You may want to use some configuration system for these; below is
# a simple "edited by the user" concept to keep the example small and clear
CFLAGS = -Wall -g -fPIC -I$(TRUNK) -I$(TRUNK)/src_3rd
LDFLAGS =
SOFLAGS = -rdynamic -shared
PLUGDIR = $(LIBDIR)/plugins


### rules ###

all: ext_foo.so

include $(TRUNK)/Makefile.conf

ext_foo.so: ext_foo.o
	$(CC) -o ext_foo.so $(LDFLAGS) $(SOFLAGS) ext_foo.o

ext_foo.o: ext_foo.c

clean:
	rm -f ext_foo.o ext_foo.so

install:
	mkdir -p $(PLUGDIR)
	cp ext_foo.so $(PLUGDIR)/ext_foo.so
	cp ext_foo.pup $(PLUGDIR)/ext_foo.pup

uninstall:
	rm -f $(PLUGDIR)/ext_foo.so $(PLUGDIR)/ext_foo.pup