summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorGeorge Williams <gww@silcom.com>2006-01-02 01:52:17 +0000
committerGeorge Williams <gww@silcom.com>2006-01-02 01:52:17 +0000
commit6cb85dab1e2e6af5aa2f84040ae1678e4f478a7b (patch)
treed0288ca45a67edb522d7e944b41cfabbb937c59e /Makefile.in
parente7dd1068d45867512790d855a99431619248a22e (diff)
Han-Wen Nienhuys provides a patch that gets rid of Makefile.Mac.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in32
1 files changed, 26 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in
index 802295b..7d075f8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,8 +1,14 @@
-prefix = @prefix@
+wilprefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
CC = @CC@
+srcdir = @srcdir@
+VPATH = @srcdir@
+HOST= @HOST@
+
+
+DARWIN_CORE = $(if $(findstring apple-darwin,$(HOST)),/System/Library/Frameworks/CoreServices.framework/CoreServices,,)
WFLAGS = -Wmissing-prototypes -Wunused -Wimplicit -Wreturn-type -Wparentheses -pedantic
CFLAGS = -g $(WFLAGS)
@@ -18,22 +24,23 @@ SETFONDNAMEOBJS = setfondname.o
all: fondu ufond showfond dfont2res tobin frombin lumper setfondname
fondu: $(FONDUOBJS)
- $(CC) $(CFLAGS) -o fondu $(FONDUOBJS) -lm
+ $(CC) $(CFLAGS) -o fondu $(FONDUOBJS) -lm $(DARWIN_CORE)
+
ufond: $(UFONDOBJS)
$(CC) $(CFLAGS) -o ufond $(UFONDOBJS)
showfond: $(SHOWOBJS)
- $(CC) $(CFLAGS) -o showfond $(SHOWOBJS)
+ $(CC) $(CFLAGS) -o showfond $(SHOWOBJS) $(DARWIN_CORE)
dfont2res: $(DFONT2RESOBJS)
$(CC) $(CFLAGS) -o dfont2res $(DFONT2RESOBJS)
tobin: $(TOBINOBJS)
- $(CC) $(CFLAGS) -o tobin $(TOBINOBJS)
+ $(CC) $(CFLAGS) -o tobin $(TOBINOBJS) $(DARWIN_CORE)
frombin: $(FROMBINOBJS)
- $(CC) $(CFLAGS) -o frombin $(FROMBINOBJS)
+ $(CC) $(CFLAGS) -o frombin $(FROMBINOBJS) $(DARWIN_CORE)
lumper: $(LUMPEROBJS)
$(CC) $(CFLAGS) -o lumper $(LUMPEROBJS)
@@ -48,4 +55,17 @@ distclean: clean
-rm Makefile
install: all
- cp fondu ufond showfond dfont2res tobin frombin lumper setfondname $(bindir)
+ mkdir -p $(DESTDIR)$(bindir)
+ cp fondu ufond showfond dfont2res tobin frombin lumper setfondname $(DESTDIR)$(bindir)
+
+VERSION=051010
+DISTNAME=fondu-$(VERSION)
+DISTFILES=$(wildcard *.c *.1 *.h) README Makefile.in configure.in configure \
+ LICENSE install-sh config.sub config.guess
+
+
+dist:
+ mkdir $(DISTNAME)
+ ln $(DISTFILES) $(DISTNAME)/
+ tar cfz $(DISTNAME).tar.gz $(DISTNAME)
+ rm -fr $(DISTNAME)