Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/ape/lib/curses/doc/Makefile.in

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


# Makefile for PDCurses manext program.

SHELL		= @SHELL@

srcdir		= @srcdir@
pdcdir		= $(srcdir)/../x11

prefix		= @prefix@
exec_prefix	= @exec_prefix@
libdir		= $(exec_prefix)

CC		= @CC@
CFLAGS		= @CFLAGS@

INCDIR		= $(srcdir)
CPPFLAGS	= @DEFS@ @SYS_DEFS@

CCFLAGS		= -c $(CFLAGS) $(CPPFLAGS) 

LINK		= $(CC)
LDFLAGS		= @LDFLAGS@ @LIBS@ 

DOC_DIR=$(srcdir)/../doc
INC_DIR=$(srcdir)/..
PDCURSES_DIR=$(srcdir)/../pdcurses

all: manual

manual: PDCurses.txt

PDCurses.txt: manext
	cat $(DOC_DIR)/intro.txt > PDCurses.txt
	echo PDCurses Definitions and Variables >> PDCurses.txt
	echo ================================== >> PDCurses.txt
	./manext $(INC_DIR)/curses.h >> PDCurses.txt
	echo PDCurses Functions >> PDCurses.txt
	echo ================== >> PDCurses.txt
	./manext $(PDCURSES_DIR)/*.c >> PDCurses.txt
	./manext $(pdcdir)/*.c >> PDCurses.txt
	cat $(DOC_DIR)/x11.txt >> PDCurses.txt
	echo >> PDCurses.txt
	echo >> PDCurses.txt
	echo \
-------------------------------------------------------------------------- \
>> PDCurses.txt
	echo >> PDCurses.txt
	cat $(DOC_DIR)/sdl.txt >> PDCurses.txt

manext: manext.o 
	$(LINK) manext.o -o $@ $(LDFLAGS)

manext.o: $(srcdir)/manext.c
	$(CC) $(CCFLAGS) -o $@ $(srcdir)/manext.c

install:
	echo Does nothing at the moment

clean:
	-rm -rf *.o manext PDCurses.txt

distclean: clean
	-rm -f Makefile

mostlyclean: clean

realclean: distclean

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].