summaryrefslogtreecommitdiff
blob: 73646d10fa938489998c0f0bd90d253bc660c367 (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
--- a/Makefile	2010-09-06 11:33:16.000000000 +0200
+++ b/Makefile	2010-09-06 11:36:28.000000000 +0200
@@ -1,8 +1,5 @@
-OPT	= -O3 -DACPI
-
-CC	= gcc
-CFLAGS	= $(OPT) -Wall -I/usr/X11R6/include
-LDFLAGS = $(OPT) -L/usr/X11R6/lib -lX11 -lXpm -lXext
+CFLAGS	+= -DACPI -Wall -I/usr/X11R6/include
+LIBS = -DACPI -L/usr/X11R6/lib -lX11 -lXpm -lXext
 
 SRCS	= wmacpimon.c libacpi.c
 OBJS	= wmacpimon.o libacpi.o
@@ -11,8 +8,10 @@
 all:	wmacpimon wmacpimond
 
 wmacpimon:	$(OBJS)
+	$(CC) $(LDFLAGS) -o wmacpimon $^ $(LIBS)
 
 wmacpimond:	$(OBJZ)
+	$(CC) $(LDFLAGS) -o wmacpimond $^ $(LIBS)
 
 clean:
 	rm -f *.o *~ wmacpimon wmacpimond trace *.out *.bb *.bbg