1 # GNU MAKE (3.79.1) Makefile for PDCurses library - DOS DJGPP V2.0+
3 # Usage: make -f [path\]gccdos.mak [DEBUG=Y] [target]
5 # where target can be any of:
6 # [all|libs|demos|dist|pdcurses.a|testcurs.exe...]
10 ifndef PDCURSES_SRCDIR
14 include $(PDCURSES_SRCDIR
)/version.mif
15 include $(PDCURSES_SRCDIR
)/libobjs.mif
17 osdir
= $(PDCURSES_SRCDIR
)/dos
19 PDCURSES_DOS_H
= $(osdir
)/pdcdos.h
24 CFLAGS
= -g
-Wall
-DPDCDEBUG
31 CFLAGS
+= -I
$(PDCURSES_SRCDIR
)
38 LIBCURSES
= pdcurses.a
40 .PHONY
: all libs
clean demos
dist
54 $(LIBCURSES
) : $(LIBOBJS
) $(PDCOBJS
)
55 $(LIBEXE
) $(LIBFLAGS
) $@
$?
56 -copy
$(LIBCURSES
) panel.a
58 $(LIBOBJS
) $(PDCOBJS
) : $(PDCURSES_HEADERS
)
59 $(PDCOBJS
) : $(PDCURSES_DOS_H
)
60 $(DEMOS
) : $(PDCURSES_CURSES_H
) $(LIBCURSES
)
61 panel.o
: $(PANEL_HEADER
)
62 terminfo.o
: $(TERM_HEADER
)
64 $(LIBOBJS
) : %.o
: $(srcdir)/%.c
67 $(PDCOBJS
) : %.o
: $(osdir
)/%.c
70 firework.exe newdemo.exe rain.exe testcurs.exe worm.exe xmas.exe \
71 ptest.exe
: %.exe
: $(demodir
)/%.c
72 $(CC
) $(CFLAGS
) -o
$@
$< $(LIBCURSES
)
74 tuidemo.exe
: tuidemo.o tui.o
75 $(LINK
) $(LDFLAGS
) -o
$@ tuidemo.o tui.o
$(LIBCURSES
)
77 tui.o
: $(demodir
)/tui.c
$(demodir
)/tui.h
$(PDCURSES_CURSES_H
)
78 $(CC
) -c
$(CFLAGS
) -I
$(demodir
) -o
$@
$<
80 tuidemo.o
: $(demodir
)/tuidemo.c
$(PDCURSES_CURSES_H
)
81 $(CC
) -c
$(CFLAGS
) -I
$(demodir
) -o
$@
$<
83 PLATFORM1
= DJGPP
2.03
84 PLATFORM2
= DJGPP
2.03 for DOS
85 ARCNAME
= pdc
$(VER
)djg
87 include $(PDCURSES_SRCDIR
)/makedist.mif