blob: 25a25470521092b0569dd8fa61bf8c06fbd3deb7 (
plain)
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
|
--- Makefile.orig Sun Oct 27 02:34:22 2002
+++ Makefile Mon Nov 27 00:06:07 2006
@@ -2,11 +2,10 @@
PREFIX = /usr/local
VERSION = 1.02
-CFLAGS = -O3 -Wall `gtk-config --cflags` -DVERSION=$(VERSION) ${EXTRA}
-CC = gcc
+CFLAGS += ${CPPFLAGS} `${GTK_CONFIG} --cflags` -DVERSION=$(VERSION) ${EXTRA}
OBJS = cnslock.o kleds.o applet.o
-LIBS = `gtk-config --libs | sed "s/-lgtk//g"`
+LIBS = `${GTK_CONFIG} --libs | sed "s/-lgtk12//g"` ${LDFLAGS}
all: cnslock
@@ -17,7 +16,7 @@
gcc $(CFLAGS) -c applet.c -o applet.o
kleds.o: kleds.c include/kleds.h include/defines.h
- $(CC) -Wall -I/usr/X11R6/include -c kleds.c -o kleds.o
+ $(CC) -Wall -I$(LOCALBASE)/include -c kleds.c -o kleds.o
cnslock: $(OBJS)
$(CC) -o cnslock $(OBJS) $(LIBS)
|