master.mif

来自「开放源码的编译器open watcom 1.6.0版的源代码」· MIF 代码 · 共 92 行

MIF
92
字号
# AUI sample project makefile

!include cproj.mif
!include defrule.mif
!include deftarg.mif

!ifeq sys_windowed 1
gui_type = win
!else
gui_type = ui
!endif

!include wres.mif

inc_dirs = -I"$(auidir)/h" -I"$(guidir)/h" -I"$(uidir)/h" -I"../h"
inc_dirs_os2 = -I"$(auidir)/os2$(host_cpu).pm" 

auilib = $(auidir)/$(host_os)$(host_cpu)/aui.lib
guilib = $(guidir)/$(gui_type)/$(host_os)$(host_cpu)/gui.lib
uilib  = $(uidir)/$(host_os)/$(host_os)$(host_cpu)/ui.lib

rcfiles = &
    $(guidir)/h/gui.rc &
    $(auidir)/h/aui.rc &
    $(auidir)/sample/h/appcomm.rc &
    $(auidir)/sample/h/dlgoptn.h &
    $(auidir)/sample/h/dlgoptn.dlg &
    ../one.bmp &
    ../two.bmp &
    ../three.bmp &
    ../four.bmp &
    ../five.bmp

objs = app.obj util.obj window1.obj window2.obj window3.obj &
       window4.obj window5.obj window6.obj window7.obj window8.obj &
       menus.obj appcolor.obj dlgcmd.obj dlgoptn.obj password.obj

!ifeq sys_windowed 1
!ifeq host_os os2
resfile = apppm.res
#resfile = apppmj.res
!else
resfile = app.res
#resfile = appj.res
!endif
!else
resfile = appui.res
#resfile = appuij.res
!endif

aui_prereq = auistr.gh _guimsgs.gh

#HBB UNUSED 20060428:
#rcinc   = $(inc_dirs_sys_win);$(guidir)/$(gui_type)/$(host_os)$(host_cpu);$(inc_dirs)

app.exe : $(aui_prereq) $(objs) $(auilib) $(guilib) $(uilib) $(wres_lib) $(resfile)
        $(linker) $(lflags) name $^@ op map,un file { $(objs) } lib $(auilib),$(guilib),$(uilib),$(wres_lib)
!ifneq sys_windowed 1
        wstrip -q -a -r $^@ . $(resfile)
!else
        $(rc) $(rc_flags) $(inc_path) -k $(resfile) $^@
!endif

app.res : ../h/app.rc $(rcfiles)
        $(rc) $(rc_flags) $(inc_path) -r $[@ -fo=$@

appj.res : ../h/app.rc $(rcfiles)
        $(rc) $(rc_flags) -r -DJAPANESE_MESSAGES $[@ -fo=$@

appui.res : ../h/appui.rc ../h/app.rc $(rcfiles)
        $(rc_aui) $(inc_path) $(inc_dirs_sys_win) $[@ -fo=$@

appuij.res : ../h/appui.rc ../h/app.rc $(rcfiles)
        $(rc_aui) $(inc_path) -DJAPANESE_MESSAGES $[@ -fo=$@

apppm.res apppmj.res : ../h/apppm.rc ../h/app.rc $(rcfiles)
        $(rc) -bt=os2 -r $(inc_dirs_os2) $(inc_path) $[@ -fo=$@

.c: ../c

./auimkstr.exe: $(auidir)/c/mkstr.c
        $(bld_cl) -I"$(auidir)/h" $(wcl_util_opts) $]@

auistr.gh : ./auimkstr.exe $(auidir)/h/aui.msg
        $[@ $^@

./guimkstr.exe: $(gui_dir)/c/mkstr.c $(gui_dir)/h/gui.msg
        $(bld_cl) -I"$(gui_dir)/h" $(wcl_util_opts) $[@

_guimsgs.gh: ./guimkstr.exe $(gui_dir)/h/gui.msg
        $[@ $^@ $(gui_msg_id_modifier)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?