File: Makefile

package info (click to toggle)
gnat-gps 5.3dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 50,360 kB
  • ctags: 11,617
  • sloc: ada: 374,346; ansic: 92,327; python: 15,979; xml: 12,186; sh: 3,277; makefile: 1,113; awk: 154; perl: 128; java: 17
file content (20 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC=gcc

all: libgprcustom.so libgpr_custom.so

gnatlib = $(strip $(shell gnatls -v | grep adalib))

libgprcustom.so: gprcustom.o
	$(CC) -shared -fPIC -o $@ $<

libgpr_custom.so: gpr_custom.o
	$(CC) -shared -fPIC -o $@ $< -L$(gnatlib) -lgnat

gprcustom.o: gprcustom.c
	$(CC) -c -fPIC $<

gpr_custom.o: gpr_custom.adb
	$(CC) -c -fPIC $<

clean:
	$(RM) *.o *.so *.ali