File: Makefile

package info (click to toggle)
gkrellmoon 0.6-6
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 280 kB
  • sloc: ansic: 1,231; makefile: 52
file content (26 lines) | stat: -rw-r--r-- 529 bytes parent folder | download
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
GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags`
GTK_LIB = `pkg-config gtk+-2.0 --libs`

INSTALLDIR = ${DESTDIR}/usr/lib/gkrellm2/plugins


FLAGS = -O2 -g -Wall -fPIC $(GTK_INCLUDE)
LIBS = $(GTK_LIB)
LFLAGS = -shared

CC = gcc $(CFLAGS) $(FLAGS)

OBJS = gkrellmoon.o MoonRise.o CalcEphem.o Moon.o

gkrellmoon.so: $(OBJS)
	$(CC) $(OBJS) -o gkrellmoon.so $(LFLAGS) $(LIBS)

clean:
	rm -f *.o core *.so* *.bak *~

gkrellmoon.o: gkrellmoon.c moon_60.xpm

# %.o: %.c

install: gkrellmoon.so
	install -c -m 644 gkrellmoon.so $(INSTALLDIR)