#
# mini-lpd
# Nico Schottelius
#

# You need to change the source, too! #define CONFIG_DIR
CONFIGDIR=/etc/mini-lpd

DESTINATION=/usr/sbin
# either debug or OPTIMIZE
#DEBUG=-g -DDEBUG
OPTIMIZE=-O2 -pipe

CC=i386-linux-gcc $(DEBUG) $(OPTIMIZE)
CFLAGS=-Werror
LDFLAGS=
# for some unices
#LDFLAGS=-static -lresolv -lsocket

all: mini-lpd
	i386-linux-strip -s -R .comment -R .note $<

install:
	#install mini-lpd $(DESTINATION)
	cp mini-lpd ../sbin
install-config:
#	install -d $(CONFIGDIR)/lp0
#	ln -s /dev/lp0 $(CONFIGDIR)/lp0/device

clean:
	rm -f mini-lpd *.o

GPL:
	@echo " lpd            | GPLv2 | mini-lpd          |                               " >> $(TOPDIR)/../GPL_list.txt
	@echo "----------------+-------+-------------------+-------------------------------------------" >>  $(TOPDIR)/../GPL_list.txt

