summaryrefslogtreecommitdiff
path: root/packages/horizon/files/makefile.patch
blob: 33f341ef08457ed945ff729ddbeb5d3f75bf91db (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
27
28
29
30
31
32
33
34
--- /tmp/Makefile	2006-08-30 12:51:56.000000000 +0200
+++ horizon/src/Makefile	2006-08-30 12:53:03.025780000 +0200
@@ -2,12 +2,11 @@
 
 all: .depend $(BINARY)
 
-CFLAGS  = -g -O2 -Wall -Werror                              \
-	  -I/usr/X11R6/include                              \
+HCFLAGS  = -g -O2 -Wall -Werror                              \
 	  `sdl-config --cflags`                             \
 	  `pkg-config --cflags glib-2.0 gobject-2.0 libpng` \
 	  -I.
-LDFLAGS = -L/usr/X11R6/lib -lX11                            \
+HLDFLAGS = -lX11                            \
 	  `sdl-config --libs`                               \
 	  `pkg-config --libs glib-2.0 gobject-2.0 libpng`   \
 	  -ljpeg
@@ -16,7 +15,7 @@
 OBJS   = $(CFILES:.c=.o)
 
 $(BINARY): $(OBJS) 
-	$(CC) *.o */*.o -o $@ $(LDFLAGS)
+	$(CC) *.o */*.o -o $@ $(LDFLAGS) $(HLDFLAGS)
 
 clean:
 	rm -f $(OBJS) $(BINARY) *.o *~ */*~ */*/*~ .depend
@@ -35,6 +34,6 @@
 	./$(BINARY) /tmp/horizon
 
 .depend: *.[ch] */*.[ch]
-	$(CC) -M $(CFLAGS) */*.c *.c > .depend
+	$(CC) -M $(CFLAGS) $(HCFLAGS) */*.c *.c > .depend
 
 include .depend