File: Makefile

package info (click to toggle)
gkrellmitime 1.0.1-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 76 kB
  • ctags: 109
  • sloc: ansic: 252; makefile: 62
file content (33 lines) | stat: -rw-r--r-- 776 bytes parent folder | download | duplicates (3)
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
# Modify INCLUDE to point to gkrellm.h (if it's not in /usr/local/include)
# INCLUDE	= /usr/local/include

PREFIX ?= /usr/local
PLUGINDIR ?= $(PREFIX)/lib/gkrellm2/plugins
INCLUDEDIR ?= $(PREFIX)/include

# Support for Debian policy
CFLAGS += -I$(INCLUDEDIR) `pkg-config gtk+-2.0 --cflags`
INSTALL = install
INSTALL_FILE            = $(INSTALL) -p    -o root -g root -m 644
INSTALL_DIR             = $(INSTALL) -p -d -o root -g root -m 755

CC	= gcc
TARGET	= gkrellm_itime



$(TARGET).so: $(TARGET).o
	$(CC) -shared -Wl `pkg-config gtk+-2.0 --libs` $< -o $@

$(TARGET).o: $(TARGET).c
	$(CC) $(CFLAGS) -c $<

$(TARGET): $(TARGET).c
	$(CC) $(CFLAGS) $< -o $@

install:
	$(INSTALL_DIR) $(PLUGINDIR)
	$(INSTALL_FILE) gkrellm_itime.so $(PLUGINDIR)

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