# # Copyright (c) 1994, 1995, 1996 Gunther Schadow. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. TOPDIR := ../.. LIBRARY := socket C_SRCS := file.c inet.c pipe.c unix.c pty.c tty.c logioctl.c H_SRCS := socket.h JUNK += ptyreopen socket.h EPTYREOPEN = $(shell ./ptyreopen) GENSRCS = socket.h all: ptyreopen $(LIBNAME) lib: ptyreopen $(LIBNAME) gensrcs: include $(TOPDIR)/GNUmakefile.inc depend: socket.h socket.h: ptyreopen socket.h.in GNUmakefile @EPTYREOPEN="$(EPTYREOPEN)"; \ if [ -n "$$EPTYREOPEN" ] ; then \ sed "s/#EPTYREOPEN#/$$EPTYREOPEN/" socket.h.in > socket.h ; \ else \ echo "EPTYREOPEN was not properly defined" >&2 ; \ exit 1 ; \ fi ptyreopen: ptyreopen.c $(CC) -o ptyreopen ptyreopen.c ### Do not change this line, make depend uses it! ###