Skip to content

Commit

Permalink
MSVC makefile for VT platform now can build the test programs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Gray committed Jun 28, 2024
1 parent 99b5d59 commit 218aa8c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vt/Makefile.vc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# [ICC=] [CHTYPE_32=] [IX86=] [target]
#
# where target can be any of:
# [all|demos|pdcurses.lib|testcurs.exe...]
# [all|demos|tests|pdcurses.lib|testcurs.exe...]
# CHTYPE_## is used to override the default 64-bit chtypes in favor
# of "traditional" 32- or 16-bit chtypes. (Untested for VT)
# IX86 is used to build 32-bit code instead of 64-bit
Expand Down Expand Up @@ -93,13 +93,17 @@ clean:
-$(RM) *.res

demos: $(PDCLIBS) $(DEMOS)
tests: $(PDCLIBS) $(TESTS)

DEMOOBJS = $(DEMOS:.exe=.obj) tui.obj
TESTOBJS = $(TESTS:.exe=.obj)

$(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
$(PDCOBJS) : $(PDCURSES_WIN_H)
$(DEMOOBJS) : $(PDCURSES_CURSES_H)
$(DEMOS) : $(LIBCURSES)
$(TESTOBJS) : $(PDCURSES_CURSES_H)
$(TESTS) : $(LIBCURSES)
panel.obj : $(PANEL_HEADER)
terminfo.obj : $(TERM_HEADER)

Expand All @@ -124,6 +128,9 @@ pdcurses.res pdcurses.obj: $(common)\pdcurses.rc
{$(demodir)\}.c{}.obj::
$(BUILD) $<

{$(testdir)\}.c{}.obj::
$(BUILD) $<

.obj.exe:
$(LINK) $(LDFLAGS) $< $(LIBCURSES) $(CCLIBS)

Expand Down

0 comments on commit 218aa8c

Please sign in to comment.