convert makefile to watcom toolchain
This commit is contained in:
parent
74b6d6443d
commit
b3fe002f50
170
Makefile
Normal file
170
Makefile
Normal file
|
@ -0,0 +1,170 @@
|
||||||
|
CC = wcc386
|
||||||
|
CPP = wpp386
|
||||||
|
LD = wlink
|
||||||
|
|
||||||
|
INCDIR =
|
||||||
|
LIBDIR =
|
||||||
|
|
||||||
|
#OPTIMIZE = /d2
|
||||||
|
OPTIMIZE = /d1 /onatx /oe=40
|
||||||
|
|
||||||
|
CCFLAGS = /zp4 /5r /fp3 /j $(OPTIMIZE) $(INCDIR) /dDOSP32 /d__32BIT__ /dWATCOM /d__DOS4G__
|
||||||
|
LDFLAGS = debug all $(LIBDIR)
|
||||||
|
|
||||||
|
OBJS = indent.obj &
|
||||||
|
e_mark.obj &
|
||||||
|
o_mode~1.obj &
|
||||||
|
c_desk~1.obj &
|
||||||
|
c_bind.obj &
|
||||||
|
c_color.obj &
|
||||||
|
c_config.obj &
|
||||||
|
c_hist~1.obj &
|
||||||
|
c_hilit.obj &
|
||||||
|
c_mode.obj &
|
||||||
|
e_block.obj &
|
||||||
|
e_buffer.obj &
|
||||||
|
e_cmds.obj &
|
||||||
|
e_redraw.obj &
|
||||||
|
e_file.obj &
|
||||||
|
e_fold.obj &
|
||||||
|
e_trans.obj &
|
||||||
|
e_line.obj &
|
||||||
|
e_load~1.obj &
|
||||||
|
e_regex.obj &
|
||||||
|
e_print.obj &
|
||||||
|
e_search.obj &
|
||||||
|
e_undo.obj &
|
||||||
|
e_tags.obj &
|
||||||
|
g_draw.obj &
|
||||||
|
g_menu.obj &
|
||||||
|
h_ada.obj &
|
||||||
|
h_c.obj &
|
||||||
|
h_fte.obj &
|
||||||
|
h_html.obj &
|
||||||
|
h_ipf.obj &
|
||||||
|
h_make.obj &
|
||||||
|
h_merge.obj &
|
||||||
|
h_pascal.obj &
|
||||||
|
h_perl.obj &
|
||||||
|
h_plain.obj &
|
||||||
|
h_msg.obj &
|
||||||
|
h_rexx.obj &
|
||||||
|
h_sh.obj &
|
||||||
|
h_tex.obj &
|
||||||
|
h_diff.obj &
|
||||||
|
h_catbs.obj &
|
||||||
|
h_simple.obj &
|
||||||
|
i_comp~1.obj &
|
||||||
|
i_ascii.obj &
|
||||||
|
i_choice.obj &
|
||||||
|
i_input.obj &
|
||||||
|
i_key.obj &
|
||||||
|
i_search.obj &
|
||||||
|
i_view.obj &
|
||||||
|
i_mode~1.obj &
|
||||||
|
i_oview.obj &
|
||||||
|
o_bufl~1.obj &
|
||||||
|
o_list.obj &
|
||||||
|
o_mess~1.obj &
|
||||||
|
o_model.obj &
|
||||||
|
o_rout~1.obj &
|
||||||
|
o_buffer.obj &
|
||||||
|
o_dire~1.obj &
|
||||||
|
s_files.obj &
|
||||||
|
s_direct.obj &
|
||||||
|
s_util.obj &
|
||||||
|
view.obj &
|
||||||
|
gui.obj &
|
||||||
|
egui.obj &
|
||||||
|
fte.obj &
|
||||||
|
commands.obj &
|
||||||
|
log.obj
|
||||||
|
|
||||||
|
DOSP32OBJS = memicmp.obj &
|
||||||
|
port.obj &
|
||||||
|
portdos.obj &
|
||||||
|
g_text.obj &
|
||||||
|
menu_t~1.obj &
|
||||||
|
con_dosx.obj &
|
||||||
|
clip_no.obj &
|
||||||
|
g_nodlg.obj &
|
||||||
|
e_djgpp2.obj
|
||||||
|
|
||||||
|
CFTE_OBJS = cfte.obj &
|
||||||
|
s_files.obj &
|
||||||
|
port.obj &
|
||||||
|
memicmp.obj
|
||||||
|
|
||||||
|
FTE_OBJS = $OBJS $DOSP32OBJS
|
||||||
|
|
||||||
|
.NOCHECK
|
||||||
|
build: fte.exe
|
||||||
|
|
||||||
|
.NOCHECK
|
||||||
|
run : fte.exe
|
||||||
|
fte.exe
|
||||||
|
|
||||||
|
.NOCHECK
|
||||||
|
debug : fte.exe
|
||||||
|
wd /swap /trap=rsi fte.exe
|
||||||
|
|
||||||
|
.cpp.obj: .AUTODEPEND
|
||||||
|
$(CPP) $[. /zq $(CCFLAGS)
|
||||||
|
|
||||||
|
.c.obj: .AUTODEPEND
|
||||||
|
$(CC) $[. /zq $(CCFLAGS)
|
||||||
|
|
||||||
|
clean: .SYMBOLIC
|
||||||
|
del *.obj
|
||||||
|
del bin2c.exe
|
||||||
|
del cfte.exe
|
||||||
|
del fte.exe
|
||||||
|
del defcfg.cnf
|
||||||
|
del defcfg.h
|
||||||
|
del cfte.lnk
|
||||||
|
del fte.lnk
|
||||||
|
del bin2c.lnk
|
||||||
|
|
||||||
|
bin2c.exe: bin2c.cpp bin2c.lnk
|
||||||
|
$(LD) $(LDFLAGS) @bin2c.lnk
|
||||||
|
|
||||||
|
cfte.exe: $(CFTE_OBJS) bin2c.exe cfte.lnk
|
||||||
|
$(LD) $(LDFLAGS) @cfte.lnk
|
||||||
|
|
||||||
|
defcfg.cnf: defcfg.fte cfte.exe
|
||||||
|
cfte defcfg.fte defcfg.cnf
|
||||||
|
|
||||||
|
defcfg.h: defcfg.cnf bin2c.exe
|
||||||
|
bin2c defcfg.cnf >defcfg.h
|
||||||
|
|
||||||
|
c_config.obj: defcfg.h
|
||||||
|
|
||||||
|
fte.exe: $(FTE_OBJS) bin2c.exe cfte.exe fte.lnk
|
||||||
|
$(LD) $(LDFLAGS) @fte.lnk
|
||||||
|
|
||||||
|
bin2c.lnk: bin2c.obj
|
||||||
|
%create $^@
|
||||||
|
%append $^@ NAME bin2c.exe
|
||||||
|
%append $^@ SYSTEM DOS4G
|
||||||
|
%append $^@ OPTION QUIET
|
||||||
|
%append $^@ OPTION STACK=16k
|
||||||
|
%append $^@ FILE bin2c.obj
|
||||||
|
|
||||||
|
cfte.lnk: $(CFTE_OBJS)
|
||||||
|
%create $^@
|
||||||
|
%append $^@ NAME cfte.exe
|
||||||
|
%append $^@ SYSTEM DOS4G
|
||||||
|
%append $^@ OPTION QUIET
|
||||||
|
%append $^@ OPTION STACK=16k
|
||||||
|
@for %i in ($(CFTE_OBJS)) do %append $^@ FILE %i
|
||||||
|
|
||||||
|
fte.lnk: $(FTE_OBJS)
|
||||||
|
%create $^@
|
||||||
|
%append $^@ NAME fte.exe
|
||||||
|
%append $^@ SYSTEM DOS4G
|
||||||
|
%append $^@ OPTION QUIET
|
||||||
|
%append $^@ OPTION STACK=16k
|
||||||
|
@for %i in ($(FTE_OBJS)) do %append $^@ FILE %i
|
||||||
|
|
||||||
|
|
||||||
|
|
54
fte-dj2.mak
54
fte-dj2.mak
|
@ -1,54 +0,0 @@
|
||||||
# MSDOS makefile for djgpp v2 and GNU make
|
|
||||||
# Contributed by Markus F.X.J. Oberhumer <markus.oberhumer@jk.uni-linz.ac.at>
|
|
||||||
|
|
||||||
CC = gxx
|
|
||||||
LD = gxx
|
|
||||||
|
|
||||||
INCDIR =
|
|
||||||
LIBDIR =
|
|
||||||
|
|
||||||
#OPTIMIZE = -g
|
|
||||||
OPTIMIZE = -O2 -fno-strength-reduce -fomit-frame-pointer -s
|
|
||||||
|
|
||||||
CCFLAGS = -x c++ -fconserve-space $(OPTIMIZE) $(INCDIR)
|
|
||||||
CCFLAGS += -Wall -W -Wsynth -Wno-unused
|
|
||||||
CCFLAGS += -DDOSP32 -D__32BIT__
|
|
||||||
LDFLAGS = $(OPTIMIZE) $(LIBDIR)
|
|
||||||
|
|
||||||
OEXT=o
|
|
||||||
|
|
||||||
.SUFFIXES: .cpp .$(OEXT)
|
|
||||||
|
|
||||||
include objs.inc
|
|
||||||
CFTE_OBJS += port.$(OEXT)
|
|
||||||
CFTE_OBJS += memicmp.$(OEXT)
|
|
||||||
|
|
||||||
.cpp.$(OEXT):
|
|
||||||
$(CC) $(CCFLAGS) -c $<
|
|
||||||
|
|
||||||
.c.$(OEXT):
|
|
||||||
$(CC) $(CCFLAGS) -c $<
|
|
||||||
|
|
||||||
.PHONY: default all clean
|
|
||||||
|
|
||||||
default all: cfte.exe fte.exe
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-$(RM) *.o bin2c.exe cfte.exe fte.exe defcfg.cnf defcfg.h
|
|
||||||
|
|
||||||
cfte.exe: $(CFTE_OBJS)
|
|
||||||
$(LD) $(LDFLAGS) $(CFTE_OBJS) -o $@
|
|
||||||
|
|
||||||
defcfg.cnf: defcfg.fte cfte.exe
|
|
||||||
cfte defcfg.fte defcfg.cnf
|
|
||||||
|
|
||||||
defcfg.h: defcfg.cnf bin2c.exe
|
|
||||||
bin2c defcfg.cnf >defcfg.h
|
|
||||||
|
|
||||||
bin2c.exe: bin2c.cpp
|
|
||||||
$(CC) $(CCFLAGS) $< -o $@
|
|
||||||
|
|
||||||
c_config.$(OEXT): defcfg.h
|
|
||||||
|
|
||||||
fte.exe: $(OBJS) $(DOSP32OBJS)
|
|
||||||
$(LD) $(LDFLAGS) $^ -o $@
|
|
143
objs.inc
143
objs.inc
|
@ -1,143 +0,0 @@
|
||||||
CFTE_OBJS = \
|
|
||||||
cfte.$(OEXT) \
|
|
||||||
s_files.$(OEXT)
|
|
||||||
|
|
||||||
OBJS = \
|
|
||||||
indent.$(OEXT) \
|
|
||||||
e_mark.$(OEXT) \
|
|
||||||
o_modemap.$(OEXT) \
|
|
||||||
c_desktop.$(OEXT) \
|
|
||||||
c_bind.$(OEXT) \
|
|
||||||
c_color.$(OEXT) \
|
|
||||||
c_config.$(OEXT) \
|
|
||||||
c_history.$(OEXT) \
|
|
||||||
c_hilit.$(OEXT) \
|
|
||||||
c_mode.$(OEXT) \
|
|
||||||
e_block.$(OEXT) \
|
|
||||||
e_buffer.$(OEXT) \
|
|
||||||
e_cmds.$(OEXT) \
|
|
||||||
e_redraw.$(OEXT) \
|
|
||||||
e_file.$(OEXT) \
|
|
||||||
e_fold.$(OEXT) \
|
|
||||||
e_trans.$(OEXT) \
|
|
||||||
e_line.$(OEXT) \
|
|
||||||
e_loadsave.$(OEXT) \
|
|
||||||
e_regex.$(OEXT) \
|
|
||||||
e_print.$(OEXT) \
|
|
||||||
e_search.$(OEXT) \
|
|
||||||
e_undo.$(OEXT) \
|
|
||||||
e_tags.$(OEXT) \
|
|
||||||
g_draw.$(OEXT) \
|
|
||||||
g_menu.$(OEXT) \
|
|
||||||
h_ada.$(OEXT) \
|
|
||||||
h_c.$(OEXT) \
|
|
||||||
h_fte.$(OEXT) \
|
|
||||||
h_html.$(OEXT) \
|
|
||||||
h_ipf.$(OEXT) \
|
|
||||||
h_make.$(OEXT) \
|
|
||||||
h_merge.$(OEXT) \
|
|
||||||
h_pascal.$(OEXT) \
|
|
||||||
h_perl.$(OEXT) \
|
|
||||||
h_plain.$(OEXT) \
|
|
||||||
h_msg.$(OEXT) \
|
|
||||||
h_rexx.$(OEXT) \
|
|
||||||
h_sh.$(OEXT) \
|
|
||||||
h_tex.$(OEXT) \
|
|
||||||
h_diff.$(OEXT) \
|
|
||||||
h_catbs.$(OEXT) \
|
|
||||||
h_simple.$(OEXT) \
|
|
||||||
i_complete.$(OEXT) \
|
|
||||||
i_ascii.$(OEXT) \
|
|
||||||
i_choice.$(OEXT) \
|
|
||||||
i_input.$(OEXT) \
|
|
||||||
i_key.$(OEXT) \
|
|
||||||
i_search.$(OEXT) \
|
|
||||||
i_view.$(OEXT) \
|
|
||||||
i_modelview.$(OEXT) \
|
|
||||||
i_oview.$(OEXT) \
|
|
||||||
o_buflist.$(OEXT) \
|
|
||||||
o_list.$(OEXT) \
|
|
||||||
o_messages.$(OEXT) \
|
|
||||||
o_model.$(OEXT) \
|
|
||||||
o_routine.$(OEXT) \
|
|
||||||
o_buffer.$(OEXT) \
|
|
||||||
o_directory.$(OEXT) \
|
|
||||||
s_files.$(OEXT) \
|
|
||||||
s_direct.$(OEXT) \
|
|
||||||
s_util.$(OEXT) \
|
|
||||||
view.$(OEXT) \
|
|
||||||
gui.$(OEXT) \
|
|
||||||
egui.$(OEXT) \
|
|
||||||
fte.$(OEXT) \
|
|
||||||
commands.$(OEXT) \
|
|
||||||
log.$(OEXT)
|
|
||||||
|
|
||||||
OS2OBJS = e_os2.$(OEXT)
|
|
||||||
|
|
||||||
VIOOBJS = $(OS2OBJS) \
|
|
||||||
g_text.$(OEXT) \
|
|
||||||
menu_text.$(OEXT) \
|
|
||||||
con_os2.$(OEXT) \
|
|
||||||
clip_os2.$(OEXT) \
|
|
||||||
clip_pmv.$(OEXT) \
|
|
||||||
g_nodlg.$(OEXT)
|
|
||||||
|
|
||||||
PMOBJS = $(OS2OBJS) \
|
|
||||||
g_pm.$(OEXT) \
|
|
||||||
clip_os2.$(OEXT) \
|
|
||||||
clip_pm.$(OEXT)
|
|
||||||
|
|
||||||
UNIXOBJS = \
|
|
||||||
e_unix.$(OEXT) \
|
|
||||||
memicmp.$(OEXT)
|
|
||||||
|
|
||||||
XOBJS = $(UNIXOBJS) \
|
|
||||||
g_text.$(OEXT) \
|
|
||||||
menu_text.$(OEXT) \
|
|
||||||
con_x11.$(OEXT) \
|
|
||||||
clip_x11.$(OEXT) \
|
|
||||||
con_i18n.$(OEXT) \
|
|
||||||
g_nodlg.$(OEXT)
|
|
||||||
|
|
||||||
QOBJS = $(UNIXOBJS) \
|
|
||||||
g_qt.$(OEXT) \
|
|
||||||
g_qt_dlg.$(OEXT) \
|
|
||||||
clip_x11.$(OEXT)
|
|
||||||
|
|
||||||
SOBJS = $(UNIXOBJS) \
|
|
||||||
g_text.$(OEXT) \
|
|
||||||
menu_text.$(OEXT) \
|
|
||||||
con_slang.$(OEXT) \
|
|
||||||
clip_no.$(OEXT) \
|
|
||||||
g_nodlg.$(OEXT)
|
|
||||||
|
|
||||||
VOBJS = $(UNIXOBJS) \
|
|
||||||
g_text.$(OEXT) \
|
|
||||||
menu_text.$(OEXT) \
|
|
||||||
con_linux.$(OEXT) \
|
|
||||||
clip_no.$(OEXT) \
|
|
||||||
g_nodlg.$(OEXT)
|
|
||||||
|
|
||||||
MOBJS = $(UNIXOBJS) \
|
|
||||||
g_motif.$(OEXT) \
|
|
||||||
clip_no.$(OEXT) \
|
|
||||||
g_nodlg.$(OEXT)
|
|
||||||
|
|
||||||
NTOBJS = \
|
|
||||||
g_text.$(OEXT) \
|
|
||||||
menu_text.$(OEXT) \
|
|
||||||
con_nt.$(OEXT) \
|
|
||||||
clip_os2.$(OEXT) \
|
|
||||||
g_nodlg.$(OEXT) \
|
|
||||||
e_win32.$(OEXT)
|
|
||||||
|
|
||||||
DOSP32OBJS = \
|
|
||||||
memicmp.$(OEXT) \
|
|
||||||
port.$(OEXT) \
|
|
||||||
portdos.$(OEXT) \
|
|
||||||
g_text.$(OEXT) \
|
|
||||||
menu_text.$(OEXT) \
|
|
||||||
con_dosx.$(OEXT) \
|
|
||||||
clip_no.$(OEXT) \
|
|
||||||
g_nodlg.$(OEXT) \
|
|
||||||
e_djgpp2.$(OEXT)
|
|
Reference in a new issue