<commit_before>###############################################################################
#
# Makefile for PDCurses library - WIN32 LCC-Win32
#
# Usage: make -f lccwin32.mak [target]
#
# where target can be any of:
# [all|demos|pdcurses.lib|panel.lib|testcurs.exe...]
#
###############################################################################
#
# Edit the line below for your environment.
#
###############################################################################
PDCURSES_HOME	= \pdcurses
###############################################################################
# Nothing below here should require changing.
###############################################################################
PDCURSES_CURSES_H	= $(PDCURSES_HOME)\curses.h
PDCURSES_CURSPRIV_H	= $(PDCURSES_HOME)\curspriv.h
PDCURSES_HEADERS	= $(PDCURSES_CURSES_H) $(PDCURSES_CURSPRIV_H)

PANEL_HEADER	= $(PDCURSES_HOME)\panel.h
TERM_HEADER	= $(PDCURSES_HOME)\term.h

srcdir		= $(PDCURSES_HOME)\pdcurses
osdir		= $(PDCURSES_HOME)\win32
pandir		= $(PDCURSES_HOME)\panel
demodir		= $(PDCURSES_HOME)\demos

PDCURSES_WIN_H	= $(osdir)\pdcwin.h

CC		= lcc

#CFLAGS		= -c -g3 -A -ansic
CFLAGS		= -c -O -A -ansic

CPPFLAGS	= -I$(PDCURSES_HOME) #-DPDC_WIDE

LINK		= lcclnk

DEFFILE		= $(osdir)\curses_lcc.def
#DEFFILE		= $(osdir)\cursesw_lcc.def
SHL_LD		= lcclnk -DLL $(DEFFILE)

LIBEXE		= lcclib

LIBCURSES	= pdcurses.lib
CURSESDLL	= pdcurses.dll
LIBPANEL	= panel.lib

# For a static build:

#BUILD		= $(CC) $(CFLAGS) $(CPPFLAGS)
#PDCLIBS		= $(LIBCURSES) $(LIBPANEL)

# For a DLL build:

BUILD		= $(CC) $(CFLAGS) $(CPPFLAGS) -DPDC_DLL_BUILD
PDCLIBS		= $(CURSESDLL) $(LIBPANEL)

DEMOS		= testcurs.exe newdemo.exe xmas.exe tuidemo.exe \
firework.exe ptest.exe rain.exe worm.exe

###############################################################################

all:    $(PDCLIBS) $(DEMOS)

clean:
	-del *.obj
	-del *.lib
	-del *.dll
	-del *.exp
	-del *.exe

#------------------------------------------------------------------------

LIBOBJS = addch.obj addchstr.obj addstr.obj attr.obj beep.obj bkgd.obj \
border.obj clear.obj color.obj delch.obj deleteln.obj deprec.obj getch.obj \
getstr.obj getyx.obj inch.obj inchstr.obj initscr.obj inopts.obj \
insch.obj insstr.obj instr.obj kernel.obj keyname.obj mouse.obj move.obj \
outopts.obj overlay.obj pad.obj printw.obj refresh.obj scanw.obj \
scr_dump.obj scroll.obj slk.obj termattr.obj terminfo.obj touch.obj util.obj \
window.obj debug.obj

PDCOBJS = pdcclip.obj pdcdisp.obj pdcgetsc.obj pdckbd.obj pdcscrn.obj \
pdcsetsc.obj pdcutil.obj

PANOBJS = panel.obj

DEMOOBJS = testcurs.obj newdemo.obj xmas.obj tuidemo.obj tui.obj \
firework.obj ptest.obj rain.obj worm.obj

$(LIBOBJS) $(PDCOBJS) $(PANOBJS) : $(PDCURSES_HEADERS)
$(PDCOBJS) : $(PDCURSES_WIN_H)
$(PANOBJS) ptest.obj: $(PANEL_HEADER)
terminfo.obj: $(TERM_HEADER)

$(DEMOOBJS) : $(PDCURSES_CURSES_H)
$(DEMOS) : $(LIBCURSES)

# Uncomment for a static build:

#$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
#	$(LIBEXE) /out:$@ $(LIBOBJS) $(PDCOBJS)

$(LIBPANEL) : $(PANOBJS)
	$(LIBEXE) /out:$@ $(PANOBJS)

$(CURSESDLL) : $(LIBOBJS) $(PDCOBJS) $(DEFFILE)
	$(SHL_LD) -o $(CURSESDLL) $(LIBOBJS) $(PDCOBJS)

addch.obj: $(srcdir)\addch.c
	$(BUILD) $(srcdir)\$*.c

addchstr.obj: $(srcdir)\addchstr.c
	$(BUILD) $(srcdir)\$*.c

addstr.obj: $(srcdir)\addstr.c
	$(BUILD) $(srcdir)\$*.c

attr.obj: $(srcdir)\attr.c
	$(BUILD) $(srcdir)\$*.c

beep.obj: $(srcdir)\beep.c
	$(BUILD) $(srcdir)\$*.c

bkgd.obj: $(srcdir)\bkgd.c
	$(BUILD) $(srcdir)\$*.c

border.obj: $(srcdir)\border.c
	$(BUILD) $(srcdir)\$*.c
<commit_msg>No default DLL for LCC.<commit_after>###############################################################################
#
# Makefile for PDCurses library - WIN32 LCC-Win32
#
# Usage: make -f lccwin32.mak [target]
#
# where target can be any of:
# [all|demos|pdcurses.lib|panel.lib|testcurs.exe...]
#
###############################################################################
#
# Edit the line below for your environment.
#
###############################################################################
PDCURSES_HOME	= \pdcurses
###############################################################################
# Nothing below here should require changing.
###############################################################################
PDCURSES_CURSES_H	= $(PDCURSES_HOME)\curses.h
PDCURSES_CURSPRIV_H	= $(PDCURSES_HOME)\curspriv.h
PDCURSES_HEADERS	= $(PDCURSES_CURSES_H) $(PDCURSES_CURSPRIV_H)

PANEL_HEADER	= $(PDCURSES_HOME)\panel.h
TERM_HEADER	= $(PDCURSES_HOME)\term.h

srcdir		= $(PDCURSES_HOME)\pdcurses
osdir		= $(PDCURSES_HOME)\win32
pandir		= $(PDCURSES_HOME)\panel
demodir		= $(PDCURSES_HOME)\demos

PDCURSES_WIN_H	= $(osdir)\pdcwin.h

CC		= lcc

#CFLAGS		= -c -g3 -A -ansic
CFLAGS		= -c -O -A -ansic

CPPFLAGS	= -I$(PDCURSES_HOME) #-DPDC_WIDE

LINK		= lcclnk

DEFFILE		= $(osdir)\curses_lcc.def
#DEFFILE		= $(osdir)\cursesw_lcc.def
SHL_LD		= lcclnk -DLL $(DEFFILE)

LIBEXE		= lcclib

LIBCURSES	= pdcurses.lib
CURSESDLL	= pdcurses.dll
LIBPANEL	= panel.lib

# For a static build:

BUILD		= $(CC) $(CFLAGS) $(CPPFLAGS)
PDCLIBS		= $(LIBCURSES) $(LIBPANEL)

# For a DLL build:

#BUILD		= $(CC) $(CFLAGS) $(CPPFLAGS) -DPDC_DLL_BUILD
#PDCLIBS		= $(CURSESDLL) $(LIBPANEL)

DEMOS		= testcurs.exe newdemo.exe xmas.exe tuidemo.exe \
firework.exe ptest.exe rain.exe worm.exe

###############################################################################

all:    $(PDCLIBS) $(DEMOS)

clean:
	-del *.obj
	-del *.lib
	-del *.dll
	-del *.exp
	-del *.exe

#------------------------------------------------------------------------

LIBOBJS = addch.obj addchstr.obj addstr.obj attr.obj beep.obj bkgd.obj \
border.obj clear.obj color.obj delch.obj deleteln.obj deprec.obj getch.obj \
getstr.obj getyx.obj inch.obj inchstr.obj initscr.obj inopts.obj \
insch.obj insstr.obj instr.obj kernel.obj keyname.obj mouse.obj move.obj \
outopts.obj overlay.obj pad.obj printw.obj refresh.obj scanw.obj \
scr_dump.obj scroll.obj slk.obj termattr.obj terminfo.obj touch.obj util.obj \
window.obj debug.obj

PDCOBJS = pdcclip.obj pdcdisp.obj pdcgetsc.obj pdckbd.obj pdcscrn.obj \
pdcsetsc.obj pdcutil.obj

PANOBJS = panel.obj

DEMOOBJS = testcurs.obj newdemo.obj xmas.obj tuidemo.obj tui.obj \
firework.obj ptest.obj rain.obj worm.obj

$(LIBOBJS) $(PDCOBJS) $(PANOBJS) : $(PDCURSES_HEADERS)
$(PDCOBJS) : $(PDCURSES_WIN_H)
$(PANOBJS) ptest.obj: $(PANEL_HEADER)
terminfo.obj: $(TERM_HEADER)

$(DEMOOBJS) : $(PDCURSES_CURSES_H)
$(DEMOS) : $(LIBCURSES)

# Remove the next two lines for a DLL build:
$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
	$(LIBEXE) /out:$@ $(LIBOBJS) $(PDCOBJS)

$(LIBPANEL) : $(PANOBJS)
	$(LIBEXE) /out:$@ $(PANOBJS)

$(CURSESDLL) : $(LIBOBJS) $(PDCOBJS) $(DEFFILE)
	$(SHL_LD) -o $(CURSESDLL) $(LIBOBJS) $(PDCOBJS)

addch.obj: $(srcdir)\addch.c
	$(BUILD) $(srcdir)\$*.c

addchstr.obj: $(srcdir)\addchstr.c
	$(BUILD) $(srcdir)\$*.c

addstr.obj: $(srcdir)\addstr.c
	$(BUILD) $(srcdir)\$*.c

attr.obj: $(srcdir)\attr.c
	$(BUILD) $(srcdir)\$*.c

beep.obj: $(srcdir)\beep.c
	$(BUILD) $(srcdir)\$*.c

bkgd.obj: $(srcdir)\bkgd.c
	$(BUILD) $(srcdir)\$*.c

border.obj: $(srcdir)\border.c
	$(BUILD) $(srcdir)\$*.c

{'fraction_non_alphanumeric': 0.29751950947603123, 'fraction_numerical': 0.002508361204013378, 'mean_word_length': 4.491201224177506, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3782986', 'n_tokens_mistral': 3058, 'n_tokens_neox': 2951, 'n_words': 538}