File: buildbc.bat

package info (click to toggle)
deutex 4.4.902-13
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,120 kB
  • sloc: ansic: 10,794; sh: 424; makefile: 340; perl: 145; csh: 4
file content (31 lines) | stat: -rw-r--r-- 913 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
rem buildbc.bat - build DeuTex with Borland C++
rem AYM 1999-09-09

if "%1" == "" goto usage
if not "%2" == "" goto usage
set bcdir=%1

cd src
echo Generating config.h
echo #undef HAVE_INTTYPES		>config.h
echo #undef HAVE_SNPRINTF		>>config.h
echo typedef signed char    int8_t;	>>config.h
echo typedef short          int16_t;	>>config.h
echo typedef long           int32_t;	>>config.h
echo typedef unsigned char  uint8_t;	>>config.h
echo typedef unsigned short uint16_t;	>>config.h
echo typedef unsigned long  uint32_t;	>>config.h
echo Building DeuTex
bcc -mh -I%bcdir%include -L%bcdir%lib -DDeuTex -e..\deutex.exe *.c
echo Building DeuSF
bcc -mh -I%bcdir%include -L%bcdir%lib -DDeuSF  -e..\deusf.exe  *.c
cd ..
goto end

:usage
echo Usage: buildbc (dir)
echo (dir)  The directory where Borland C is installed,
echo        followed by a backslash (E.G. "c:\bc4\").

:end