head	1.2;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.2
	RELEASE_8_1_0:1.2
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1;
locks; strict;
comment	@# @;


1.2
date	2010.06.30.02.15.08;	author vanilla;	state Exp;
branches;
next	1.1;

1.1
date	2006.12.30.03.53.35;	author rafan;	state Exp;
branches;
next	;


desc
@@


1.2
log
@respect $(CC) to make clang happy.

Feature safe:	yes
@
text
@--- hzconvert/Makefile.orig	2001-01-08 18:03:21.000000000 +0800
+++ hzconvert/Makefile	2010-06-30 10:13:35.000000000 +0800
@@@@ -1,18 +1,17 @@@@
-CC=gcc -I../include
-CFLAGS=-O2 -Wall -g
+CFLAGS+=-fPIC -Wall -g -I../include
 SHARED_LIB=libhz.so
 SHARED_LIB_MAJOR=$(SHARED_LIB).0
 SHARED_LIB_MINOR=$(SHARED_LIB_MAJOR).0
 OBJS=b2g.o b2u.o g2u.o hz2gb.o b2g_tables.o b2u_tables.o g2u_tables.o io.o unicode.o judge.o judge3.o gbpercent.o b5percent.o search.o 
 
+all: libhzconvert
+
 %.o: %.c
 	$(CC) -fPIC $(CFLAGS) -c $<
 
-all: libhzconvert
-
 libhzconvert: $(OBJS)
 	ar rs  ../lib/libhz.a $(OBJS)
-	gcc -fPIC -shared -Wl,-soname,$(SHARED_LIB_MAJOR) -o ../lib/$(SHARED_LIB_MINOR)  $(OBJS) -ldl
+	$(CC) -fPIC -shared -Wl,-soname,$(SHARED_LIB_MAJOR) -o ../lib/$(SHARED_LIB_MINOR)  $(OBJS)
 	rm -f ../lib/$(SHARED_LIB_MAJOR)
 	rm -f ../lib/$(SHARED_LIB)
 	cd ../lib;ln -s $(SHARED_LIB_MINOR) $(SHARED_LIB_MAJOR)
@


1.1
log
@- Update to 0.3.16
  This builds on newer gcc.
- Respect CC, CFLAGS
- Comply new style patch filename
- xchat plugin is disabled for now

PR:		ports/107264
Submitted by:	Ying-Chieh Chen (maintainer)
@
text
@d1 3
a3 3
--- hzconvert/Makefile.orig	Mon Jan  8 18:03:21 2001
+++ hzconvert/Makefile	Thu Dec 28 10:30:43 2006
@@@@ -1,18 +1,18 @@@@
a5 1
+CC=gcc
d22 1
a22 1
+	gcc -fPIC -shared -Wl,-soname,$(SHARED_LIB_MAJOR) -o ../lib/$(SHARED_LIB_MINOR)  $(OBJS)
@

