summaryrefslogtreecommitdiffstats
path: root/misc/snowflake/files/patch-aa
blob: 013d4d19cb139a493140e116c83bb4a079cc38e7 (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
--- Makefile.orig	Mon Dec 21 08:18:55 1998
+++ Makefile	Sat Jul  1 18:36:45 2000
@@ -1,6 +1,6 @@
 # Makefile
 
-CC = gcc
+CC ?= gcc
 
 SRCS = sf.c sf_control.c sf_generate.c sf_view.c getopt.c
 OBJS = $(SRCS:.c=.o)
@@ -11,13 +11,13 @@
 all: snowflake
 
 .c.o:
-	$(CC) `gtk-config --cflags` -c $*.c -o $*.o
+	$(CC) $(CFLAGS) `$(GTK_CONFIG) --cflags` -c $*.c -o $*.o
 
 snowflake: $(OBJS)
-	$(CC) `gtk-config --libs` $(OBJS) -o $@
+	$(CC) $(CFLAGS) `$(GTK_CONFIG) --libs` $(OBJS) -o $@
 
 getopt: getopt.c
-	$(CC) -DTEST_LONG_OPTIONS $< -o $@
+	$(CC) $(CFLAGS) -DTEST_LONG_OPTIONS $< -o $@
 
 clean: 
 	rm -f *~ *.o snowflake
OpenPOWER on IntegriCloud