aboutsummaryrefslogtreecommitdiffstats
path: root/www/erwn/files/patch-aa
blob: 7d20775801f7c27bc1a5a6ff8ff994e3a91daad6 (plain) (blame)
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
35
36
37
38
39
40
41
42
43
--- Makefile.orig   Sun Jul 25 05:33:08 1999
+++ Makefile    Sat Jul  1 17:57:20 2000
@@ -2,14 +2,14 @@
 bindir     = $(prefix)/bin
 
 NAME       = erwin-0.3.1
-CC     = gcc
+CC     ?= gcc
 PROG       = erwin
 OBJS       = erwin.o erwinmenu.o erwinfunctions.o erwintoolbar.o \
          erwinnotebook.o erwindialogs.o erwintags.o gtkmessage.o
 INSTALL        = install
-DEBUG      = -g -DDEBUG
+DEBUG      = # -g -DDEBUG
 
-CFLAGS     = -DNAME=\"$(NAME)\" $(DEBUG) -Wall -O2 -m486 -fno-strength-reduce -malign-functions=4 -malign-jumps=4 -malign-loops=4 -ffast-math -fexpensive-optimizations
+CFLAGS     += -DNAME=\"$(NAME)\" $(DEBUG) -fno-strength-reduce -ffast-math -fexpensive-optimizations
 
 all: license $(PROG)
 
@@ -17,8 +17,7 @@
    strip $(PROG)
 
 install:   strip
-   $(INSTALL) -d $(bindir)
-   $(INSTALL) -m 0755 $(PROG) $(bindir)
+   ${BSD_INSTALL_PROGRAM} $(PROG) $(bindir)
 
 uninstall:
    
@@ -28,10 +27,10 @@
    rm -f $(PROG) $(OBJS) *.?~ core license.h
 
 $(PROG):   $(OBJS)
-   $(CC) $(LDFLAGS) $(shell gtk-config --libs) -o $@ $(OBJS)
+   $(CC) $(LDFLAGS) `$(GTK_CONFIG) --libs` -o $@ $(OBJS)
 
 %.o:       %.c
-   $(CC) $(CFLAGS) $(shell gtk-config --cflags) -o $@ -c $<
+   $(CC) $(CFLAGS) `$(GTK_CONFIG) --cflags` -o $@ -c $<
 
 tar:   clean
    cd ..; ln -s erwin $(NAME);tar cf - $(NAME)/* > $(NAME).tar;rm $(NAME);gzip -f $(NAME).tar