summaryrefslogtreecommitdiff
path: root/lang/icon/patches/patch-aw
blob: ac978647b5e858c63607f6baabd1dac35214ba80 (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.6 2009/02/08 12:51:05 asau Exp $

--- src/common/Makefile.orig	2003-07-05 21:30:35.000000000 +0400
+++ src/common/Makefile	2009-02-08 01:41:40.000000000 +0300
@@ -5,7 +5,7 @@
 	munix.o literals.o rswitch.o alloc.o long.o getopt.o time.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