blob: af58c5b4d9ec1d69e0a2284c9218ee87d3cb46ec (
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
26
|
--- Makefile.orig Sat Nov 20 18:19:07 2004
+++ Makefile Sat Nov 20 18:22:11 2004
@@ -1,7 +1,6 @@
-CC = gcc
-LIBDIR = -L/usr/X11R6/lib -L/usr/lib
-LIBS = -lXpm -lXext -lX11 -lpthread `pkg-config --libs gtk+-2.0`
-CFLAGS = `pkg-config --cflags gtk+-2.0`
+LIBDIR = -L${X11BASE}/lib -L${LOCALBASE}/lib
+LIBS = -lXpm -lXext -lX11 `pkg-config --libs gtk+-2.0` ${PTHREAD_LIBS}
+CFLAGS += `pkg-config --cflags gtk+-2.0` ${PTHREAD_CFLAGS}
OBJS = wmtimer.o \
../wmgeneral/wmgeneral.o \
@@ -10,10 +9,10 @@
all: wmtimer
.c.o:
- $(CC) -g -c -O2 -Wall $< -o $*.o $(CFLAGS)
+ $(CC) -c $< -o $*.o $(CFLAGS)
wmtimer: $(OBJS)
- $(CC) -Wall -g -o wmtimer $^ $(LIBDIR) $(LIBS)
+ $(CC) -o wmtimer $^ $(LIBDIR) $(LIBS)
install:
cp wmtimer /usr/local/bin/
|