File: Makefile

package info (click to toggle)
libkeepalive 0.3-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 120 kB
  • ctags: 15
  • sloc: ansic: 98; makefile: 31
file content (23 lines) | stat: -rw-r--r-- 610 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
20
21
22
23
#   _ _ _     _                         _ _
#  | (_) |__ | | _____  ___ _ __   __ _| (_)_   _____
#  | | | '_ \| |/ / _ \/ _ \ '_ \ / _` | | \ \ / / _ \
#  | | | |_) |   <  __/  __/ |_) | (_| | | |\ V /  __/
#  |_|_|_.__/|_|\_\___|\___| .__/ \__,_|_|_| \_/ \___|
#                          |_|
#
#  (C) Fabio Busatto <fabio.busatto@gmail.com>

CC=gcc
CFLAGS=-fPIC -ansi -pedantic -Wall
LDFLAGS=-shared -Wl,-soname,libkeepalive.so.0
LDFLAGS += $(shell dpkg-buildflags --get LDFLAGS)
LDFLAGS += -z now
LDLIBS=-ldl

default: libkeepalive.so

%.so: %.o
	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS)

clean:
	rm -f *.so *.o