File: Makefile

package info (click to toggle)
fling 1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 136 kB
  • sloc: ansic: 925; makefile: 33; sh: 16
file content (20 lines) | stat: -rw-r--r-- 344 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CFLAGS += -O2 -Wall -Wextra -pedantic -std=c99
LIBS += -lm -lrt
CC ?= gcc
INSTALL ?= install
DESTDIR ?=
prefix ?= /usr
exec_prefix ?= $(prefix)
bindir = $(exec_prefix)/bin

fling: fling.c
	$(CC) -o fling $(CFLAGS) fling.c $(LIBS)

clean:
	rm -f fling

check: fling
	./smoke-test

install:
	$(INSTALL) -m 0755 -t "$(DESTDIR)/$(bindir)" -D fling