"Fossies" - the Fresh Open Source Software Archive

Member "seed7/src/mk_msys.mak" (10 Feb 2021, 15578 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_msys.mak": 05_20210130_vs_05_20210223.

    1 # Makefile for gmake and gcc from MinGW. Commands executed by: bash
    2 # To compile use a MSYS console and call:
    3 #   mingw32-make -f mk_msys.mak depend
    4 #   mingw32-make -f mk_msys.mak
    5 # It might also be possible to use this makefile from a Windows console instead of the MSYS console.
    6 # When your make utility is mingw32-make, you should use mk_mingw.mak instead.
    7 # When the nmake utility from Windows is available, you can use mk_nmake.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.exe -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     rm next_lvl
  104 
  105 ../prg/s7.exe: ../bin/s7.exe
  106     cp ../bin/s7.exe ../prg
  107 
  108 ../bin/s7c.exe: ../prg/s7c.exe
  109     cp ../prg/s7c.exe ../bin
  110 
  111 ../prg/s7c.exe: ../prg/s7c.sd7 $(ALL_S7_LIBS)
  112     ../bin/s7.exe -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_msys.mak s7 s7c
  139 
  140 clear: clean
  141 
  142 clean:
  143     rm -f *.o ../bin/*.a ../bin/s7.exe ../bin/s7c.exe ../prg/s7.exe ../prg/s7c.exe depend macros chkccomp.h base.h settings.h version.h setwpath.exe wrdepend.exe sudo.exe levelup.exe next_lvl
  144     @echo
  145     @echo "  Use 'make depend' (with your make command) to create the dependencies."
  146     @echo
  147 
  148 distclean: clean
  149     cp level_bk.h level.h
  150     rm -f vers_msys.h
  151 
  152 test:
  153     ../bin/s7.exe -l ../lib ../prg/chk_all build
  154     @echo
  155     @echo "  Use './sudo make install' (with your make command) to install Seed7."
  156     @echo "  Or open a console as administrator, go to the directory seed7/src"
  157     @echo "  and use 'make install' (with your make command) to install Seed7."
  158     @echo
  159 
  160 install: setwpath.exe
  161     ./setwpath.exe add ../bin
  162 
  163 uninstall: setwpath.exe
  164     ./setwpath.exe remove ../bin
  165 
  166 dep: depend
  167 
  168 strip:
  169     strip ../bin/s7.exe
  170 
  171 chkccomp.h:
  172     echo "#define LIST_DIRECTORY_CONTENTS \"dir\"" > chkccomp.h
  173     echo "#define LINKER_OPT_STATIC_LINKING \"-static\"" >> chkccomp.h
  174     echo "#define CC_OPT_LINK_TIME_OPTIMIZATION \"-flto\"" >> chkccomp.h
  175     echo "#define LINKER_OPT_NO_LTO \"-fno-lto\"" >> chkccomp.h
  176     echo "#define SUPPORTS_PARTIAL_LINKING" >> chkccomp.h
  177     echo "#define POSTGRESQL_USE_DLL" >> chkccomp.h
  178 
  179 base.h:
  180     echo "#define PATH_DELIMITER 92 /* backslash (ASCII) */" > base.h
  181     echo "#define OS_STRI_WCHAR" >> base.h
  182     echo "#define QUOTE_WHOLE_SHELL_COMMAND" >> base.h
  183     echo "#define OBJECT_FILE_EXTENSION \".o\"" >> base.h
  184     echo "#define EXECUTABLE_FILE_EXTENSION \".exe\"" >> base.h
  185     echo "#define C_COMPILER \"$(CC)\"" >> base.h
  186     echo "#define CC_OPT_VERSION_INFO \"--version\"" >> base.h
  187     echo "#define CC_FLAGS \"-ffunction-sections -fdata-sections\"" >> base.h
  188     echo "#define CC_ERROR_FILEDES 2" >> base.h
  189     echo "#define CC_VERSION_INFO_FILEDES 1" >> base.h
  190     echo "#define LINKER_OPT_OUTPUT_FILE \"-o \"" >> base.h
  191     echo "#define ARCHIVER \"$(AR)\"" >> base.h
  192     echo "#define ARCHIVER_OPT_REPLACE \"r \"" >> base.h
  193     echo "#define FORMAT_LL_TRIGGERS_WARNINGS 1" >> base.h
  194     echo "#define SYSTEM_LIBS \"$(SYSTEM_LIBS)\"" >> base.h
  195 
  196 settings.h:
  197     echo "#define MAKE_UTILITY_NAME \"$(MAKE)\"" > settings.h
  198     echo "#define MAKEFILE_NAME \"mk_msys.mak\"" >> settings.h
  199     echo "#define SEARCH_PATH_DELIMITER ';'" >> settings.h
  200     echo "#define CONSOLE_WCHAR" >> settings.h
  201     echo "#define os_getch _getwch" >> settings.h
  202     echo "#define LIBRARY_FILE_EXTENSION \".a\"" >> settings.h
  203     echo "#define CC_OPT_DEBUG_INFO \"-g\"" >> settings.h
  204     echo "#define CC_OPT_NO_WARNINGS \"-w\"" >> settings.h
  205     echo "#define LINKER_OPT_NO_DEBUG_INFO \"-Wl,--strip-debug\"" >> settings.h
  206     echo "#define LINKER_FLAGS \"$(LDFLAGS)\"" >> settings.h
  207     echo "#define SYSTEM_DRAW_LIBS \"$(SYSTEM_DRAW_LIBS)\"" >> settings.h
  208     echo "#define SYSTEM_CONSOLE_LIBS \"$(SYSTEM_CONSOLE_LIBS)\"" >> settings.h
  209     echo "#define SEED7_LIB \"$(SEED7_LIB)\"" >> settings.h
  210     echo "#define DRAW_LIB \"$(DRAW_LIB)\"" >> settings.h
  211     echo "#define CONSOLE_LIB \"$(CONSOLE_LIB)\"" >> settings.h
  212     echo "#define DATABASE_LIB \"$(DATABASE_LIB)\"" >> settings.h
  213     echo "#define COMP_DATA_LIB \"$(COMP_DATA_LIB)\"" >> settings.h
  214     echo "#define COMPILER_LIB \"$(COMPILER_LIB)\"" >> settings.h
  215 
  216 version.h: chkccomp.h base.h settings.h
  217     $(CC) chkccomp.c -o chkccomp
  218     ./chkccomp.exe version.h
  219     rm chkccomp.exe
  220     $(CC) setpaths.c -o setpaths
  221     ./setpaths.exe "S7_LIB_DIR=$(S7_LIB_DIR)" "SEED7_LIBRARY=$(SEED7_LIBRARY)" >> version.h
  222     rm setpaths.exe
  223     $(CC) setwpath.c -o setwpath
  224     $(CC) wrdepend.c -o wrdepend
  225     $(CC) sudo.c -w -o sudo
  226     cp version.h vers_msys.h
  227 
  228 depend: version.h
  229     ./wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(SRC) "> depend"
  230     ./wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(SEED7_LIB_SRC) ">> depend"
  231     ./wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(DRAW_LIB_SRC) ">> depend"
  232     ./wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(CONSOLE_LIB_SRC) ">> depend"
  233     ./wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(DATABASE_LIB_SRC_STD_INCL) ">> depend"
  234     ./wrdepend.exe OPTION=DB2_INCLUDE_OPTION $(CFLAGS) -M sql_db2.c ">> depend"
  235     ./wrdepend.exe OPTION=SQL_SERVER_INCLUDE_OPTION $(CFLAGS) -M sql_srv.c ">> depend"
  236     ./wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(COMP_DATA_LIB_SRC) ">> depend"
  237     ./wrdepend.exe OPTION=INCLUDE_OPTIONS $(CFLAGS) -M $(COMPILER_LIB_SRC) ">> depend"
  238     @echo
  239     @echo "  Use 'make' (with your make command) to create the interpreter."
  240     @echo
  241 
  242 ../bin/$(SEED7_LIB): $(SEED7_LIB_OBJ)
  243     $(AR) r ../bin/$(SEED7_LIB) $(SEED7_LIB_OBJ)
  244 
  245 ../bin/$(DRAW_LIB): $(DRAW_LIB_OBJ)
  246     $(AR) r ../bin/$(DRAW_LIB) $(DRAW_LIB_OBJ)
  247 
  248 ../bin/$(CONSOLE_LIB): $(CONSOLE_LIB_OBJ)
  249     $(AR) r ../bin/$(CONSOLE_LIB) $(CONSOLE_LIB_OBJ)
  250 
  251 ../bin/$(DATABASE_LIB): $(DATABASE_LIB_OBJ)
  252     $(AR) r ../bin/$(DATABASE_LIB) $(DATABASE_LIB_OBJ)
  253 
  254 ../bin/$(COMP_DATA_LIB): $(COMP_DATA_LIB_OBJ)
  255     $(AR) r ../bin/$(COMP_DATA_LIB) $(COMP_DATA_LIB_OBJ)
  256 
  257 ../bin/$(COMPILER_LIB): $(COMPILER_LIB_OBJ)
  258     $(AR) r ../bin/$(COMPILER_LIB) $(COMPILER_LIB_OBJ)
  259 
  260 ../bin/bas7.exe: ../prg/bas7.sd7 ../bin/s7c.exe
  261     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/bas7
  262     mv ../prg/bas7.exe ../bin
  263 
  264 ../bin/bigfiles.exe: ../prg/bigfiles.sd7 ../bin/s7c.exe
  265     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/bigfiles
  266     mv ../prg/bigfiles.exe ../bin
  267 
  268 ../bin/calc7.exe: ../prg/calc7.sd7 ../bin/s7c.exe
  269     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/calc7
  270     mv ../prg/calc7.exe ../bin
  271 
  272 ../bin/cat.exe: ../prg/cat.sd7 ../bin/s7c.exe
  273     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/cat
  274     mv ../prg/cat.exe ../bin
  275 
  276 ../bin/comanche.exe: ../prg/comanche.sd7 ../bin/s7c.exe
  277     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/comanche
  278     mv ../prg/comanche.exe ../bin
  279 
  280 ../bin/db7.exe: ../prg/db7.sd7 ../bin/s7c.exe
  281     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/db7
  282     mv ../prg/db7.exe ../bin
  283 
  284 ../bin/diff7.exe: ../prg/diff7.sd7 ../bin/s7c.exe
  285     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/diff7
  286     mv ../prg/diff7.exe ../bin
  287 
  288 ../bin/find7.exe: ../prg/find7.sd7 ../bin/s7c.exe
  289     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/find7
  290     mv ../prg/find7.exe ../bin
  291 
  292 ../bin/findchar.exe: ../prg/findchar.sd7 ../bin/s7c.exe
  293     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/findchar
  294     mv ../prg/findchar.exe ../bin
  295 
  296 ../bin/ftp7.exe: ../prg/ftp7.sd7 ../bin/s7c.exe
  297     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/ftp7
  298     mv ../prg/ftp7.exe ../bin
  299 
  300 ../bin/ftpserv.exe: ../prg/ftpserv.sd7 ../bin/s7c.exe
  301     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/ftpserv
  302     mv ../prg/ftpserv.exe ../bin
  303 
  304 ../bin/hd.exe: ../prg/hd.sd7 ../bin/s7c.exe
  305     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/hd
  306     mv ../prg/hd.exe ../bin
  307 
  308 ../bin/make7.exe: ../prg/make7.sd7 ../bin/s7c.exe
  309     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/make7
  310     mv ../prg/make7.exe ../bin
  311 
  312 ../bin/sql7.exe: ../prg/sql7.sd7 ../bin/s7c.exe
  313     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/sql7
  314     mv ../prg/sql7.exe ../bin
  315 
  316 ../bin/sydir7.exe: ../prg/sydir7.sd7 ../bin/s7c.exe
  317     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/sydir7
  318     mv ../prg/sydir7.exe ../bin
  319 
  320 ../bin/tar7.exe: ../prg/tar7.sd7 ../bin/s7c.exe
  321     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/tar7
  322     mv ../prg/tar7.exe ../bin
  323 
  324 ../bin/toutf8.exe: ../prg/toutf8.sd7 ../bin/s7c.exe
  325     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/toutf8
  326     mv ../prg/toutf8.exe ../bin
  327 
  328 ../bin/which.exe: ../prg/which.sd7 ../bin/s7c.exe
  329     ../bin/s7c.exe -l ../lib -b ../bin -O2 ../prg/which
  330     mv ../prg/which.exe ../bin
  331 
  332 bas7: ../bin/bas7.exe
  333 bigfiles: ../bin/bigfiles.exe
  334 calc7: ../bin/calc7.exe
  335 cat: ../bin/cat.exe
  336 comanche: ../bin/comanche.exe
  337 db7: ../bin/db7.exe
  338 diff7: ../bin/diff7.exe
  339 find7: ../bin/find7.exe
  340 findchar: ../bin/findchar.exe
  341 ftp7: ../bin/ftp7.exe
  342 ftpserv: ../bin/ftpserv.exe
  343 hd: ../bin/hd.exe
  344 make7: ../bin/make7.exe
  345 sql7: ../bin/sql7.exe
  346 sydir7: ../bin/sydir7.exe
  347 tar7: ../bin/tar7.exe
  348 toutf8: ../bin/toutf8.exe
  349 which: ../bin/which.exe
  350 
  351 utils: ../bin/bas7.exe ../bin/bigfiles.exe ../bin/calc7.exe ../bin/cat.exe ../bin/comanche.exe ../bin/db7.exe \
  352        ../bin/diff7.exe ../bin/find7.exe ../bin/findchar.exe ../bin/ftp7.exe ../bin/ftpserv.exe ../bin/hd.exe \
  353        ../bin/make7.exe ../bin/sql7.exe ../bin/sydir7.exe ../bin/tar7.exe ../bin/toutf8.exe ../bin/which.exe
  354 
  355 wc: $(SRC)
  356     @echo SRC:
  357     wc $(SRC)
  358     @echo SEED7_LIB_SRC:
  359     wc $(SEED7_LIB_SRC)
  360     @echo DRAW_LIB_SRC:
  361     wc $(DRAW_LIB_SRC)
  362     @echo CONSOLE_LIB_SRC:
  363     wc $(CONSOLE_LIB_SRC)
  364     @echo DATABASE_LIB_SRC:
  365     wc $(DATABASE_LIB_SRC)
  366     @echo COMP_DATA_LIB_SRC:
  367     wc $(COMP_DATA_LIB_SRC)
  368     @echo COMPILER_LIB_SRC:
  369     wc $(COMPILER_LIB_SRC)
  370 
  371 lint: $(SRC)
  372     lint -p $(SRC) $(SYSTEM_DRAW_LIBS) $(SYSTEM_CONSOLE_LIBS) $(SYSTEM_DATABASE_LIBS) $(SYSTEM_LIBS) $(ADDITIONAL_SYSTEM_LIBS)
  373 
  374 lint2: $(SRC)
  375     lint -Zn2048 $(SRC) $(SYSTEM_DRAW_LIBS) $(SYSTEM_CONSOLE_LIBS) $(SYSTEM_DATABASE_LIBS) $(SYSTEM_LIBS) $(ADDITIONAL_SYSTEM_LIBS)
  376 
  377 ifeq (depend,$(wildcard depend))
  378 include depend
  379 endif
  380 
  381 ifeq (macros,$(wildcard macros))
  382 include macros
  383 endif