Debian Codegraph @

doc/examples/strict-mode/files/libhello/Makefile

raw
1 # Sample makefile for hello library
2 #
3 .PHONY: all install
4
5 all: libhello.so libhello.a
6
7 install: all
8 install -d ${DESTDIR}${PREFIX}/lib
9 install -d ${DESTDIR}${PREFIX}/include
10 install -m 644 libhello.so ${DESTDIR}${PREFIX}/lib
11 install -m 644 libhello.a ${DESTDIR}${PREFIX}/lib
12 install -m 644 libhello.h ${DESTDIR}${PREFIX}/include
13
14 %.o: %.c %.h
15 $(CC) -c $< -o $@ -Wall
16
17 libhello.a: libhello.o
18 $(AR) rcs $@ $^
19
20 libhello.so: libhello.o
21 $(CC) -shared -o $@ $<