CC=gcc CFLAG+=-Iinclude LIBS+=-Llib -lhz .PHONY: all hzlib clean install-home install all: autob5 autogb hzlib xchat-plugins autob5: autogb rm -f autob5;ln -s autogb autob5 autogb:autogb.c hzlib $(CC) $(CFLAG) $(LIBS) autogb.c -lhz -o autogb autogb-static:autogb.c hzlib $(CC) $(CFLAG) autogb.c lib/libhz.a -o autogb hzlib: cd hzconvert;make xchat-plugins: cd contrib/xchat-plugins;make clean: rm -f autob5 autogb *.o *~ rm -f include/*~ cd hzconvert;make clean cd contrib/xchat-plugins;make clean install-home: [ ! -f $(HOME)/bin ] || mkdir $(HOME)/bin rm -f $(HOME)/bin/autob5 rm -f $(HOME)/bin/autogb cp -f autogb $(HOME)/bin ln -s $(HOME)/bin/autogb $(HOME)/bin/autob5 chmod 755 $(HOME)/bin/autogb install: ${BSD_INSTALL_PROGRAM} autogb $(PREFIX)/bin ${BSD_INSTALL_PROGRAM} lib/libhz.so.0.0 $(PREFIX)/lib/libhz.so.0 cd $(PREFIX)/lib;ln -s libhz.so.0 libhz.so ${BSD_INSTALL_PROGRAM} lib/libhz.a $(PREFIX)/lib #${BSD_INSTALL_PROGRAM} contrib/xchat-plugins/xchat-autogb.so $(PREFIX)/share/autoconvert #${BSD_INSTALL_PROGRAM} contrib/xchat-plugins/xchat-autob5.so $(PREFIX)/share/autoconvert ${BSD_INSTALL_DATA} include/*.h $(PREFIX)/include ln -s autogb $(PREFIX)/bin/autob5