# 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