2000-07-07 19:59:26 +00:00
|
|
|
--- Makefile.orig Sun Jul 25 05:33:08 1999
|
|
|
|
+++ Makefile Sat Jul 1 17:57:20 2000
|
1999-09-20 00:43:11 +00:00
|
|
|
@@ -2,14 +2,14 @@
|
1999-08-24 09:50:50 +00:00
|
|
|
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
|
1999-09-20 00:43:11 +00:00
|
|
|
INSTALL = install
|
2000-07-07 19:59:26 +00:00
|
|
|
-DEBUG = -g -DDEBUG
|
|
|
|
+DEBUG = # -g -DDEBUG
|
1999-09-20 00:43:11 +00:00
|
|
|
|
|
|
|
-CFLAGS = -DNAME=\"$(NAME)\" $(DEBUG) -Wall -O2 -m486 -fno-strength-reduce -malign-functions=4 -malign-jumps=4 -malign-loops=4 -ffast-math -fexpensive-optimizations
|
2000-07-07 19:59:26 +00:00
|
|
|
+CFLAGS += -DNAME=\"$(NAME)\" $(DEBUG) -fno-strength-reduce -ffast-math -fexpensive-optimizations
|
1999-09-20 00:43:11 +00:00
|
|
|
|
|
|
|
all: license $(PROG)
|
|
|
|
|
2000-07-07 19:59:26 +00:00
|
|
|
@@ -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 @@
|
1999-08-24 09:50:50 +00:00
|
|
|
rm -f $(PROG) $(OBJS) *.?~ core license.h
|
|
|
|
|
|
|
|
$(PROG): $(OBJS)
|
|
|
|
- $(CC) $(LDFLAGS) $(shell gtk-config --libs) -o $@ $(OBJS)
|
2000-07-07 19:59:26 +00:00
|
|
|
+ $(CC) $(LDFLAGS) `$(GTK_CONFIG) --libs` -o $@ $(OBJS)
|
1999-08-24 09:50:50 +00:00
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
- $(CC) $(CFLAGS) $(shell gtk-config --cflags) -o $@ -c $<
|
2000-07-07 19:59:26 +00:00
|
|
|
+ $(CC) $(CFLAGS) `$(GTK_CONFIG) --cflags` -o $@ -c $<
|
1999-08-24 09:50:50 +00:00
|
|
|
|
|
|
|
tar: clean
|
|
|
|
cd ..; ln -s erwin $(NAME);tar cf - $(NAME)/* > $(NAME).tar;rm $(NAME);gzip -f $(NAME).tar
|