File: Makefile

package info (click to toggle)
gdpc 2.2.5-14
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 9,596 kB
  • sloc: ansic: 5,906; makefile: 141; sh: 55
file content (36 lines) | stat: -rw-r--r-- 904 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
24
25
26
27
28
29
30
31
32
33
34
35
36
CC = gcc
PKG_CONFIG ?= pkg-config
FLAGS=$(CFLAGS) -g -Wall `$(PKG_CONFIG) --cflags gtk+-2.0 gthread-2.0` -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
LIBS=`$(PKG_CONFIG) --libs gtk+-2.0 gthread-2.0` -lm
bindir ?= /usr/bin

.c.o:
	$(CC) -c $(COPTIONS) $(FLAGS) $(CPPFLAGS) $<

gdpc: main.o colors.o sort.o drawatoms.o readinput.o init.o rotate.o setup.o Makefile
	$(CC) $(COPTIONS) $(CFLAGS) -o gdpc main.o colors.o drawatoms.o init.o sort.o rotate.o setup.o readinput.o $(LIBS) $(LDFLAGS)

main.o: main.c parameters.h

colors.o: colors.c parameters.h

readinput.o: readinput.c parameters.h

drawatoms.o: drawatoms.c parameters.h

init.o: init.c parameters.h

sort.o: sort.c parameters.h

rotate.o: rotate.c parameters.h

setup.o: setup.c parameters.h tooltips.h

clean:
	rm -f *.o gdpc

install:
	install -p -m 755 -D gdpc $(bindir)/gdpc

uninstall:
	rm $(bindir)/gdpc