1# 2# Copyright 2005 Hon Hai Precision Ind. Co. Ltd. 3# All Rights Reserved. 4# No portions of this material shall be reproduced in any form without the 5# written permission of Hon Hai Precision Ind. Co. Ltd. 6# 7# All information contained in this document is Hon Hai Precision Ind. 8# Co. Ltd. company private, proprietary, and trade secret property and 9# are protected by international intellectual property laws and treaties. 10# 11# $Id$ 12# 13 14include ../config.in 15include ../config.mk 16VERSION=1.4 17 18# CC = gcc 19CPPFLAGS=-DVERSION_STR=\"$(VERSION)\" -DUUCP_LOCK_DIR=\"/var/lock\" 20CFLAGS = -Wall -g 21 22# LD = gcc 23LDFLAGS = -g 24LDLIBS = 25ifeq ($(CONFIG_KERNEL_2_6_36),y) 26LDFLAGS += -lgcc_s 27endif 28 29install: picocom 30 install -D picocom $(TARGETDIR)/usr/sbin/picocom 31 $(STRIP) $(TARGETDIR)/usr/sbin/picocom 32 33picocom : picocom.o term.o 34# $(LD) $(LDFLAGS) -o $@ $+ $(LDLIBS) 35 36picocom.o : picocom.c term.h 37term.o : term.c term.h 38 39doc : picocom.8 picocom.8.html picocom.8.ps 40 41changes : 42 svn log -v . > CHANGES 43 44picocom.8 : picocom.8.xml 45 xmlmp2man < $< > $@ 46 47picocom.8.html : picocom.8.xml 48 xmlmp2html < $< > $@ 49 50picocom.8.ps : picocom.8 51 groff -mandoc -Tps $< > $@ 52 53clean: 54 rm -f picocom.o term.o 55 rm -f *~ 56 rm -f \#*\# 57 58distclean: clean 59 rm -f picocom 60 61realclean: distclean 62 rm -f picocom.8 63 rm -f picocom.8.html 64 rm -f picocom.8.ps 65 rm -f CHANGES 66