File: Makefile

package info (click to toggle)
libdockapp 1%3A0.7.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,728 kB
  • sloc: sh: 3,688; ansic: 2,175; makefile: 104
file content (18 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC=gcc
INSTALL=install
PREFIX=/usr/local
CFLAGS+=-Wall `pkg-config --cflags dockapp`
LIBS=`pkg-config --libs dockapp`

rectangles: rectangles.o
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

rectangles.o: rectangles.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<

install:
	$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
	$(INSTALL) rectangles $(DESTDIR)$(PREFIX)/bin

clean:
	rm -f rectangles rectangles.o