forked from ers35/colorforth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.dos
53 lines (42 loc) · 1.06 KB
/
Makefile.dos
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#-*- makefile -*-
# For DOSBOS you may need CWSDPMI.EXE found in fdos/bin from freeDos
default: cf.exe
SRC=src\main.c src\cf.c \
src\cf-stdio.c \
src\color.c \
src/utils.c
SRC_H=src/cf.h \
conf.h \
src/cf-stdio.h \
src/color.h \
src/utils.h
INCLUDED_SRC=src/core.c \
src/lib.c
#ext/ext.c \
#ext/parser.c \
#ext/io.c \
#ext/time.c \
#ext/math.c \
#ext/math-float.c \
#ext/dict.c \
#ext/os.c \
#ext/threads.c \
#ext/mp-math.c \
#ext/network.c \
#ext/sdl.c
conf.h: src\conftm~1.h
copy src\conftm~1.h conf.h
patch4dos: conf.h
sed -i "s%#define __ECHO_COLOR%//#define __ECHO_COLOR%g" conf.h
sed -i "s%#define __EXCEPTION%//#define ___EXCEPTION%g" conf.h
sed -i "s%#define __EXTENDED_MATH%//#define __EXTENDED_MATH%g" conf.h
sed -i "s%#define __MP_MATH%//#define __MP_MATH%g" conf.h
ext/ext.c: ext/0_tmpl.c
copy ext\0_tmpl.c ext\ext.c
cf.exe: $(SRC) $(SRC_H) $(INCLUDED_SRC)
gcc -std=c99 -Os -Wall -Werror -Wextra -pedantic \
-s -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-parameter \
-I. -Isrc -Iext \
-o cf.exe $(SRC)
clean:
del cf.exe