File: rules

package info (click to toggle)
triangle 1.6-7
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 4,412 kB
  • sloc: ansic: 75,086; makefile: 72
file content (19 lines) | stat: -rwxr-xr-x 468 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
#!/usr/bin/make -f

# DH_VERBOSE := 1


export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_build:
	make tricall
	make triangle
	make showme
	$(AR) cr libtriangle.a triangle.o
	rm -f triangle.o
	$(CC) $(CPPFLAGS) $(CFLAGS) -O -DLINUX -DTRILIBRARY -fPIC -DPIC -c -o triangle.o triangle.c
	$(CC) $(LDFLAGS) -shared triangle.o -o libtriangle-1.6.so $(LOADLIBES) $(LDLIBS) -lm -Wl,-soname,libtriangle-1.6.so
	ln -s libtriangle-1.6.so libtriangle.so