"Fossies" - the Fresh Open Source Software Archive

Member "seed7/src/mk_mingw.mak" (10 Feb 2021, 15980 Bytes) of package /linux/misc/seed7_05_20210223.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "mk_mingw.mak": 05_20210130_vs_05_20210223.

    1 # Makefile for mingw32-make and gcc from MinGW. Commands executed by: cmd.exe
    2 # To compile use a Windows console and call:
    3 #   mingw32-make -f mk_mingw.mak depend
    4 #   mingw32-make -f mk_mingw.mak
    5 # When your make utility uses Unix commands, you should use mk_msys.mak instead.
    6 # When the nmake utility from Windows is available, you can use mk_nmake.mak instead.
    7 # When you are using the MSYS console from MinGW you should use mk_msys.mak instead.
    8 
    9 # CFLAGS = -O2 -fomit-frame-pointer -funroll-loops -Wall
   10 # CFLAGS = -O2 -fomit-frame-pointer -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
   11 CFLAGS = -O2 -g -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) $(CC_OPT_LINK_TIME_OPTIMIZATION) -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
   12 # CFLAGS = -O2 -g -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) $(CC_OPT_LINK_TIME_OPTIMIZATION) -Wall -Winline -Wconversion -Wshadow -Wpointer-arith
   13 # CFLAGS = -O2 -g -pg -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
   14 # CFLAGS = -O2 -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
   15 # CFLAGS = -O2 -pg -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
   16 # CFLAGS = -O2 -funroll-loops -Wall -pg
   17 LDFLAGS = -Wl,--gc-sections,--stack,8388608
   18 # LDFLAGS = -Wl,--gc-sections,--stack,8388608,--subsystem,windows
   19 # LDFLAGS = -pg
   20 # LDFLAGS = -pg -lc_p
   21 SYSTEM_LIBS = -lm -lws2_32
   22 # SYSTEM_LIBS = -lm -lws2_32 -lgmp
   23 SYSTEM_DRAW_LIBS = -lgdi32
   24 SYSTEM_CONSOLE_LIBS =
   25 # SYSTEM_DATABASE_LIBS is defined in the file "macros". The program chkccomp.c writes it to "macros" when doing "make depend".
   26 SEED7_LIB = seed7_05.a
   27 DRAW_LIB = s7_draw.a
   28 CONSOLE_LIB = s7_con.a
   29 DATABASE_LIB = s7_db.a
   30 COMP_DATA_LIB = s7_data.a
   31 COMPILER_LIB = s7_comp.a
   32 ALL_S7_LIBS = ..\bin\$(COMPILER_LIB) ..\bin\$(COMP_DATA_LIB) ..\bin\$(DRAW_LIB) ..\bin\$(CONSOLE_LIB) ..\bin\$(DATABASE_LIB) ..\bin\$(SEED7_LIB)
   33 # CC = g++
   34 CC = gcc
   35 AR = ar
   36 
   37 MOBJ = s7.o
   38 POBJ = runerr.o option.o primitiv.o
   39 LOBJ = actlib.o arrlib.o biglib.o binlib.o blnlib.o bstlib.o chrlib.o cmdlib.o conlib.o dcllib.o \
   40        drwlib.o enulib.o fillib.o fltlib.o hshlib.o intlib.o itflib.o kbdlib.o lstlib.o pcslib.o \
   41        pollib.o prclib.o prglib.o reflib.o rfllib.o sctlib.o setlib.o soclib.o sqllib.o strlib.o \
   42        timlib.o typlib.o ut8lib.o
   43 EOBJ = exec.o doany.o objutl.o
   44 AOBJ = act_comp.o prg_comp.o analyze.o syntax.o token.o parser.o name.o type.o \
   45        expr.o atom.o object.o scanner.o literal.o numlit.o findid.o \
   46        error.o infile.o libpath.o symbol.o info.o stat.o fatal.o match.o
   47 GOBJ = syvarutl.o traceutl.o actutl.o executl.o blockutl.o \
   48        entutl.o identutl.o chclsutl.o arrutl.o
   49 ROBJ = arr_rtl.o bln_rtl.o bst_rtl.o chr_rtl.o cmd_rtl.o con_rtl.o dir_rtl.o drw_rtl.o fil_rtl.o \
   50        flt_rtl.o hsh_rtl.o int_rtl.o itf_rtl.o pcs_rtl.o set_rtl.o soc_rtl.o sql_rtl.o str_rtl.o \
   51        tim_rtl.o ut8_rtl.o heaputl.o numutl.o sigutl.o striutl.o
   52 DOBJ = big_rtl.o big_gmp.o cmd_win.o dir_win.o dll_win.o fil_win.o pcs_win.o pol_sel.o soc_none.o \
   53        stat_win.o tim_win.o
   54 OBJ = $(MOBJ)
   55 SEED7_LIB_OBJ = $(ROBJ) $(DOBJ)
   56 DRAW_LIB_OBJ = gkb_rtl.o drw_win.o gkb_win.o
   57 CONSOLE_LIB_OBJ = kbd_rtl.o con_win.o
   58 DATABASE_LIB_OBJ = sql_base.o sql_db2.o sql_fire.o sql_lite.o sql_my.o sql_oci.o sql_odbc.o \
   59                    sql_post.o sql_srv.o sql_tds.o
   60 COMP_DATA_LIB_OBJ = typ_data.o rfl_data.o ref_data.o listutl.o flistutl.o typeutl.o datautl.o
   61 COMPILER_LIB_OBJ = $(POBJ) $(LOBJ) $(EOBJ) $(AOBJ) $(GOBJ)
   62 
   63 MSRC = s7.c
   64 PSRC = runerr.c option.c primitiv.c
   65 LSRC = actlib.c arrlib.c biglib.c binlib.c blnlib.c bstlib.c chrlib.c cmdlib.c conlib.c dcllib.c \
   66        drwlib.c enulib.c fillib.c fltlib.c hshlib.c intlib.c itflib.c kbdlib.c lstlib.c pcslib.c \
   67        pollib.c prclib.c prglib.c reflib.c rfllib.c sctlib.c setlib.c soclib.c sqllib.c strlib.c \
   68        timlib.c typlib.c ut8lib.c
   69 ESRC = exec.c doany.c objutl.c
   70 ASRC = act_comp.c prg_comp.c analyze.c syntax.c token.c parser.c name.c type.c \
   71        expr.c atom.c object.c scanner.c literal.c numlit.c findid.c \
   72        error.c infile.c libpath.c symbol.c info.c stat.c fatal.c match.c
   73 GSRC = syvarutl.c traceutl.c actutl.c executl.c blockutl.c \
   74        entutl.c identutl.c chclsutl.c arrutl.c
   75 RSRC = arr_rtl.c bln_rtl.c bst_rtl.c chr_rtl.c cmd_rtl.c con_rtl.c dir_rtl.c drw_rtl.c fil_rtl.c \
   76        flt_rtl.c hsh_rtl.c int_rtl.c itf_rtl.c pcs_rtl.c set_rtl.c soc_rtl.c sql_rtl.c str_rtl.c \
   77        tim_rtl.c ut8_rtl.c heaputl.c numutl.c sigutl.c striutl.c
   78 DSRC = big_rtl.c big_gmp.c cmd_win.c dir_win.c dll_win.c fil_win.c pcs_win.c pol_sel.c soc_none.c \
   79        stat_win.c tim_win.c
   80 SRC = $(MSRC)
   81 SEED7_LIB_SRC = $(RSRC) $(DSRC)
   82 DRAW_LIB_SRC = gkb_rtl.c drw_win.c gkb_win.c
   83 CONSOLE_LIB_SRC = kbd_rtl.c con_win.c
   84 DATABASE_LIB_SRC_STD_INCL = sql_base.c sql_fire.c sql_lite.c sql_my.c sql_oci.c sql_odbc.c \
   85                             sql_post.c sql_tds.c
   86 DATABASE_LIB_SRC = $(DATABASE_LIB_SRC_STD_INCL) sql_db2.c sql_srv.c
   87 COMP_DATA_LIB_SRC = typ_data.c rfl_data.c ref_data.c listutl.c flistutl.c typeutl.c datautl.c
   88 COMPILER_LIB_SRC = $(PSRC) $(LSRC) $(ESRC) $(ASRC) $(GSRC)
   89 
   90 s7: ..\bin\s7.exe ..\prg\s7.exe
   91     ..\bin\s7 -l ..\lib level
   92     @echo.
   93     @echo Use 'make s7c' (with your make command) to create the compiler.
   94     @echo.
   95 
   96 s7c: ..\bin\s7c.exe ..\prg\s7c.exe
   97     @echo.
   98     @echo Use 'make test' (with your make command) to check Seed7.
   99     @echo.
  100 
  101 ..\bin\s7.exe: levelup.exe next_lvl $(OBJ) $(ALL_S7_LIBS)
  102     $(CC) $(LDFLAGS) $(OBJ) $(ALL_S7_LIBS) $(SYSTEM_DRAW_LIBS) $(SYSTEM_CONSOLE_LIBS) $(SYSTEM_DATABASE_LIBS) $(SYSTEM_LIBS) $(ADDITIONAL_SYSTEM_LIBS) -o ..\bin\s7
  103     del next_lvl
  104 
  105 ..\prg\s7.exe: ..\bin\s7.exe
  106     copy ..\bin\s7.exe ..\prg /Y
  107 
  108 ..\bin\s7c.exe: ..\prg\s7c.exe
  109     copy ..\prg\s7c.exe ..\bin /Y
  110 
  111 ..\prg\s7c.exe: ..\prg\s7c.sd7 $(ALL_S7_LIBS)
  112     ..\bin\s7 -l ..\lib ..\prg\s7c -l ..\lib -b ..\bin -O2 ..\prg\s7c
  113 
  114 levelup.exe: levelup.c
  115     $(CC) levelup.c -o levelup
  116 
  117 next_lvl: levelup.exe
  118     .\levelup.exe
  119     echo X > next_lvl
  120 
  121 OBJCOPY_PARAMS = \
  122        -L SQLAllocHandle -L SQLBindCol -L SQLBindParameter -L SQLBrowseConnectW -L SQLColAttributeW \
  123        -L SQLConnectW -L SQLDataSources -L SQLDescribeColW -L SQLDescribeParam -L SQLDisconnect \
  124        -L SQLDriverConnectW -L SQLDriversW -L SQLExecute -L SQLFetch -L SQLFreeHandle \
  125        -L SQLFreeStmt -L SQLGetData -L SQLGetDiagRecW -L SQLGetInfoW -L SQLGetStmtAttrW \
  126        -L SQLGetTypeInfoW -L SQLNumParams -L SQLNumResultCols -L SQLPrepareW -L SQLSetDescFieldW \
  127        -L SQLSetEnvAttr
  128 
  129 sql_db2.o: sql_db2.c
  130     $(CC) -c $(CPPFLAGS) $(DB2_INCLUDE_OPTION) $(CFLAGS) $(DB2_LIBS) -r $< -o $@
  131     objcopy $(OBJCOPY_PARAMS) $@
  132 
  133 sql_srv.o: sql_srv.c
  134     $(CC) -c $(CPPFLAGS) $(SQL_SERVER_INCLUDE_OPTION) $(CFLAGS) $(SQL_SERVER_LIBS) -r $< -o $@
  135     objcopy $(OBJCOPY_PARAMS) $@
  136 
  137 all: depend
  138     $(MAKE) -f mk_mingw.mak s7 s7c
  139 
  140 clear: clean
  141 
  142 clean:
  143     del *.o
  144     del ..\bin\*.a
  145     del ..\bin\s7.exe
  146     del ..\bin\s7c.exe
  147     del ..\prg\s7.exe
  148     del ..\prg\s7c.exe
  149     del depend
  150     del macros
  151     del chkccomp.h
  152     del base.h
  153     del settings.h
  154     del version.h
  155     del setwpath.exe
  156     del wrdepend.exe
  157     del sudo.exe
  158     del levelup.exe
  159     del next_lvl
  160     @echo.
  161     @echo Use 'make depend' (with your make command) to create the dependencies.
  162     @echo.
  163 
  164 distclean: clean
  165     copy level_bk.h level.h /Y
  166     del vers_mingw.h
  167 
  168 test:
  169     ..\bin\s7 -l ..\lib ..\prg\chk_all build
  170     @echo.
  171     @echo Use 'sudo make install' (with your make command) to install Seed7.
  172     @echo Or open a console as administrator, go to the directory seed7/src
  173     @echo and use 'make install' (with your make command) to install Seed7.
  174     @echo.
  175 
  176 install: setwpath.exe
  177     .\setwpath.exe add ..\bin
  178 
  179 uninstall: setwpath.exe
  180     .\setwpath.exe remove ..\bin
  181 
  182 dep: depend
  183 
  184 strip:
  185     strip ..\bin\s7.exe
  186 
  187 chkccomp.h:
  188     echo #define LIST_DIRECTORY_CONTENTS "dir" > chkccomp.h
  189     echo #define LINKER_OPT_STATIC_LINKING "-static" >> chkccomp.h
  190     echo #define CC_OPT_LINK_TIME_OPTIMIZATION "-flto" >> chkccomp.h
  191     echo #define LINKER_OPT_NO_LTO "-fno-lto" >> chkccomp.h
  192     echo #define SUPPORTS_PARTIAL_LINKING >> chkccomp.h
  193     echo #define POSTGRESQL_USE_DLL >> chkccomp.h
  194 
  195 base.h:
  196     echo #define PATH_DELIMITER '\\' > base.h
  197     echo #define OS_STRI_WCHAR >> base.h
  198     echo #define QUOTE_WHOLE_SHELL_COMMAND >> base.h
  199     echo #define OBJECT_FILE_EXTENSION ".o" >> base.h
  200     echo #define EXECUTABLE_FILE_EXTENSION ".exe" >> base.h
  201     echo #define C_COMPILER "$(CC)" >> base.h
  202     echo #define CC_OPT_VERSION_INFO "--version" >> base.h
  203     echo #define CC_FLAGS "-ffunction-sections -fdata-sections" >> base.h
  204     echo #define CC_ERROR_FILEDES 2 >> base.h
  205     echo #define CC_VERSION_INFO_FILEDES 1 >> base.h
  206     echo #define LINKER_OPT_OUTPUT_FILE "-o " >> base.h
  207     echo #define ARCHIVER "$(AR)" >> base.h
  208     echo #define ARCHIVER_OPT_REPLACE "r " >> base.h
  209     echo #define FORMAT_LL_TRIGGERS_WARNINGS 1 >> base.h
  210     echo #define SYSTEM_LIBS "$(SYSTEM_LIBS)" >> base.h
  211 
  212 settings.h:
  213     echo #define MAKE_UTILITY_NAME "$(MAKE)" > settings.h
  214     echo #define MAKEFILE_NAME "mk_mingw.mak" >> settings.h
  215     echo #define SEARCH_PATH_DELIMITER ';' >> settings.h
  216     echo #define CONSOLE_WCHAR >> settings.h
  217     echo #define os_getch _getwch >> settings.h
  218     echo #define LIBRARY_FILE_EXTENSION ".a" >> settings.h
  219     echo #define CC_OPT_DEBUG_INFO "-g" >> settings.h
  220     echo #define CC_OPT_NO_WARNINGS "-w" >> settings.h
  221     echo #define LINKER_OPT_NO_DEBUG_INFO "-Wl,--strip-debug" >> settings.h
  222     echo #define LINKER_FLAGS "$(LDFLAGS)" >> settings.h
  223     echo #define SYSTEM_DRAW_LIBS "$(SYSTEM_DRAW_LIBS)" >> settings.h
  224     echo #define SYSTEM_CONSOLE_LIBS "$(SYSTEM_CONSOLE_LIBS)" >> settings.h
  225     echo #define SEED7_LIB "$(SEED7_LIB)" >> settings.h
  226     echo #define DRAW_LIB "$(DRAW_LIB)" >> settings.h
  227     echo #define CONSOLE_LIB "$(CONSOLE_LIB)" >> settings.h
  228     echo #define DATABASE_LIB "$(DATABASE_LIB)" >> settings.h
  229     echo #define COMP_DATA_LIB "$(COMP_DATA_LIB)" >> settings.h
  230     echo #define COMPILER_LIB "$(COMPILER_LIB)" >> settings.h
  231 
  232 version.h: chkccomp.h base.h settings.h
  233     $(CC) chkccomp.c -o chkccomp
  234     .\chkccomp.exe version.h
  235     del chkccomp.exe
  236     $(CC) setpaths.c -o setpaths
  237     .\setpaths.exe "S7_LIB_DIR=$(S7_LIB_DIR)" "SEED7_LIBRARY=$(SEED7_LIBRARY)" >> version.h
  238     del setpaths.exe
  239     $(CC) setwpath.c -o setwpath
  240     $(CC) wrdepend.c -o wrdepend
  241     $(CC) sudo.c -w -o sudo
  242     copy version.h vers_mingw.h /Y
  243 
  244 depend: version.h
  245     .\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(SRC) "> depend"
  246     .\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(SEED7_LIB_SRC) ">> depend"
  247     .\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(DRAW_LIB_SRC) ">> depend"
  248     .\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(CONSOLE_LIB_SRC) ">> depend"
  249     .\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(DATABASE_LIB_SRC_STD_INCL) ">> depend"
  250     .\wrdepend.exe OPTION=DB2_INCLUDE_OPTION $(CFLAGS) -M sql_db2.c ">> depend"
  251     .\wrdepend.exe OPTION=SQL_SERVER_INCLUDE_OPTION $(CFLAGS) -M sql_srv.c ">> depend"
  252     .\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(COMP_DATA_LIB_SRC) ">> depend"
  253     .\wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(COMPILER_LIB_SRC) ">> depend"
  254     @echo.
  255     @echo Use 'make' (with your make command) to create the interpreter.
  256     @echo.
  257 
  258 ..\bin\$(SEED7_LIB): $(SEED7_LIB_OBJ)
  259     $(AR) r ..\bin\$(SEED7_LIB) $(SEED7_LIB_OBJ)
  260 
  261 ..\bin\$(DRAW_LIB): $(DRAW_LIB_OBJ)
  262     $(AR) r ..\bin\$(DRAW_LIB) $(DRAW_LIB_OBJ)
  263 
  264 ..\bin\$(CONSOLE_LIB): $(CONSOLE_LIB_OBJ)
  265     $(AR) r ..\bin\$(CONSOLE_LIB) $(CONSOLE_LIB_OBJ)
  266 
  267 ..\bin\$(DATABASE_LIB): $(DATABASE_LIB_OBJ)
  268     $(AR) r ..\bin\$(DATABASE_LIB) $(DATABASE_LIB_OBJ)
  269 
  270 ..\bin\$(COMP_DATA_LIB): $(COMP_DATA_LIB_OBJ)
  271     $(AR) r ..\bin\$(COMP_DATA_LIB) $(COMP_DATA_LIB_OBJ)
  272 
  273 ..\bin\$(COMPILER_LIB): $(COMPILER_LIB_OBJ)
  274     $(AR) r ..\bin\$(COMPILER_LIB) $(COMPILER_LIB_OBJ)
  275 
  276 ..\bin\bas7.exe: ..\prg\bas7.sd7 ..\bin\s7c.exe
  277     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\bas7
  278     copy ..\prg\bas7.exe ..\bin /Y
  279     del ..\prg\bas7.exe
  280 
  281 ..\bin\bigfiles.exe: ..\prg\bigfiles.sd7 ..\bin\s7c.exe
  282     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\bigfiles
  283     copy ..\prg\bigfiles.exe ..\bin /Y
  284     del ..\prg\bigfiles.exe
  285 
  286 ..\bin\calc7.exe: ..\prg\calc7.sd7 ..\bin\s7c.exe
  287     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\calc7
  288     copy ..\prg\calc7.exe ..\bin /Y
  289     del ..\prg\calc7.exe
  290 
  291 ..\bin\cat.exe: ..\prg\cat.sd7 ..\bin\s7c.exe
  292     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\cat
  293     copy ..\prg\cat.exe ..\bin /Y
  294     del ..\prg\cat.exe
  295 
  296 ..\bin\comanche.exe: ..\prg\comanche.sd7 ..\bin\s7c.exe
  297     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\comanche
  298     copy ..\prg\comanche.exe ..\bin /Y
  299     del ..\prg\comanche.exe
  300 
  301 ..\bin\db7.exe: ..\prg\db7.sd7 ..\bin\s7c.exe
  302     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\db7
  303     copy ..\prg\db7.exe ..\bin /Y
  304     del ..\prg\db7.exe
  305 
  306 ..\bin\diff7.exe: ..\prg\diff7.sd7 ..\bin\s7c.exe
  307     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\diff7
  308     copy ..\prg\diff7.exe ..\bin /Y
  309     del ..\prg\diff7.exe
  310 
  311 ..\bin\find7.exe: ..\prg\find7.sd7 ..\bin\s7c.exe
  312     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\find7
  313     copy ..\prg\find7.exe ..\bin /Y
  314     del ..\prg\find7.exe
  315 
  316 ..\bin\findchar.exe: ..\prg\findchar.sd7 ..\bin\s7c.exe
  317     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\findchar
  318     copy ..\prg\findchar.exe ..\bin /Y
  319     del ..\prg\findchar.exe
  320 
  321 ..\bin\ftp7.exe: ..\prg\ftp7.sd7 ..\bin\s7c.exe
  322     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\ftp7
  323     copy ..\prg\ftp7.exe ..\bin /Y
  324     del ..\prg\ftp7.exe
  325 
  326 ..\bin\ftpserv.exe: ..\prg\ftpserv.sd7 ..\bin\s7c.exe
  327     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\ftpserv
  328     copy ..\prg\ftpserv.exe ..\bin /Y
  329     del ..\prg\ftpserv.exe
  330 
  331 ..\bin\hd.exe: ..\prg\hd.sd7 ..\bin\s7c.exe
  332     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\hd
  333     copy ..\prg\hd.exe ..\bin /Y
  334     del ..\prg\hd.exe
  335 
  336 ..\bin\make7.exe: ..\prg\make7.sd7 ..\bin\s7c.exe
  337     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\make7
  338     copy ..\prg\make7.exe ..\bin /Y
  339     del ..\prg\make7.exe
  340 
  341 ..\bin\sql7.exe: ..\prg\sql7.sd7 ..\bin\s7c.exe
  342     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\sql7
  343     copy ..\prg\sql7.exe ..\bin /Y
  344     del ..\prg\sql7.exe
  345 
  346 ..\bin\sydir7.exe: ..\prg\sydir7.sd7 ..\bin\s7c.exe
  347     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\sydir7
  348     copy ..\prg\sydir7.exe ..\bin /Y
  349     del ..\prg\sydir7.exe
  350 
  351 ..\bin\tar7.exe: ..\prg\tar7.sd7 ..\bin\s7c.exe
  352     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\tar7
  353     copy ..\prg\tar7.exe ..\bin /Y
  354     del ..\prg\tar7.exe
  355 
  356 ..\bin\toutf8.exe: ..\prg\toutf8.sd7 ..\bin\s7c.exe
  357     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\toutf8
  358     copy ..\prg\toutf8.exe ..\bin /Y
  359     del ..\prg\toutf8.exe
  360 
  361 ..\bin\which.exe: ..\prg\which.sd7 ..\bin\s7c.exe
  362     ..\bin\s7c.exe -l ..\lib -b ..\bin -O2 ..\prg\which
  363     copy ..\prg\which.exe ..\bin /Y
  364     del ..\prg\which.exe
  365 
  366 bas7: ..\bin\bas7.exe
  367 bigfiles: ..\bin\bigfiles.exe
  368 calc7: ..\bin\calc7.exe
  369 cat: ..\bin\cat.exe
  370 comanche: ..\bin\comanche.exe
  371 db7: ..\bin\db7.exe
  372 diff7: ..\bin\diff7.exe
  373 find7: ..\bin\find7.exe
  374 findchar: ..\bin\findchar.exe
  375 ftp7: ..\bin\ftp7.exe
  376 ftpserv: ..\bin\ftpserv.exe
  377 hd: ..\bin\hd.exe
  378 make7: ..\bin\make7.exe
  379 sql7: ..\bin\sql7.exe
  380 sydir7: ..\bin\sydir7.exe
  381 tar7: ..\bin\tar7.exe
  382 toutf8: ..\bin\toutf8.exe
  383 which: ..\bin\which.exe
  384 
  385 utils: ..\bin\bas7.exe ..\bin\bigfiles.exe ..\bin\calc7.exe ..\bin\cat.exe ..\bin\comanche.exe ..\bin\db7.exe \
  386        ..\bin\diff7.exe ..\bin\find7.exe ..\bin\findchar.exe ..\bin\ftp7.exe ..\bin\ftpserv.exe ..\bin\hd.exe \
  387        ..\bin\make7.exe ..\bin\sql7.exe ..\bin\sydir7.exe ..\bin\tar7.exe ..\bin\toutf8.exe ..\bin\which.exe
  388 
  389 wc: $(SRC)
  390     @echo SRC:
  391     wc $(SRC)
  392     @echo SEED7_LIB_SRC:
  393     wc $(SEED7_LIB_SRC)
  394     @echo DRAW_LIB_SRC:
  395     wc $(DRAW_LIB_SRC)
  396     @echo CONSOLE_LIB_SRC:
  397     wc $(CONSOLE_LIB_SRC)
  398     @echo DATABASE_LIB_SRC:
  399     wc $(DATABASE_LIB_SRC)
  400     @echo COMP_DATA_LIB_SRC:
  401     wc $(COMP_DATA_LIB_SRC)
  402     @echo COMPILER_LIB_SRC:
  403     wc $(COMPILER_LIB_SRC)
  404 
  405 lint: $(SRC)
  406     lint -p $(SRC) $(SYSTEM_DRAW_LIBS) $(SYSTEM_CONSOLE_LIBS) $(SYSTEM_DATABASE_LIBS) $(SYSTEM_LIBS) $(ADDITIONAL_SYSTEM_LIBS)
  407 
  408 lint2: $(SRC)
  409     lint -Zn2048 $(SRC) $(SYSTEM_DRAW_LIBS) $(SYSTEM_CONSOLE_LIBS) $(SYSTEM_DATABASE_LIBS) $(SYSTEM_LIBS) $(ADDITIONAL_SYSTEM_LIBS)
  410 
  411 ifeq (depend,$(wildcard depend))
  412 include depend
  413 endif
  414 
  415 ifeq (macros,$(wildcard macros))
  416 include macros
  417 endif