blob: b437d0501f44545cdd25e96e9a3e0e9cbf484203 (
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
35
36
37
|
$NetBSD: patch-aw,v 1.5 2003/06/06 08:58:43 jtb Exp $
--- src/common/Makefile.orig
+++ src/common/Makefile
@@ -5,7 +5,7 @@
munix.o literals.o rswitch.o alloc.o long.o getopt.o time.o\
save.o xwindow.o dlrgint.o ipp.o
-common: doincl $(OBJS) gpxmaybe
+common: doincl patchstr $(OBJS) fixheaders gpxmaybe
doincl: doincl.c ../h/arch.h
$(CC) $(CFLAGS) -o doincl doincl.c
@@ -13,13 +13,22 @@
patchstr: patchstr.c
$(CC) $(CFLAGS) -o patchstr patchstr.c
+ cp patchstr ../../bin
+
+fixheaders:
+ cd ../h; for f in *.h; do \
+ sed -e 's:../h/::g;s:../xpm/::g' $$f > ../../lib/icon/$$f; \
+ done
gpxmaybe:
-if [ "x$(XL)" != "x" ]; then $(MAKE) $(GDIR); fi
xpm:
cd ../xpm; $(MAKE) libXpm.a
- cp -p ../xpm/libXpm.a ../../bin/libIgpx.a
+ cp -p ../xpm/libXpm.a ../../lib/icon/libIgpx.a
+ cd ../xpm; for f in *.h; do \
+ sed -e 's:../h/::g;s:../xpm/::g' $$f > ../../lib/icon/$$f; \
+ done
wincap:
cd ../wincap; $(MAKE) libWincap.a
|