2005-10-31 16:30:23 +01:00
|
|
|
# Windows via mingw32
|
|
|
|
# MING=mingw32- is necessary if you're cross-compiling
|
|
|
|
# on another platform. Otherwise the binaries are just
|
|
|
|
# named gcc, etc.
|
|
|
|
|
2005-11-08 02:35:49 +01:00
|
|
|
MING=i586-mingw32msvc-
|
2005-10-31 16:30:23 +01:00
|
|
|
#MING=
|
|
|
|
AR=$(MING)ar
|
|
|
|
CC=$(MING)gcc
|
2005-11-04 17:05:20 +01:00
|
|
|
AS=$(MING)as
|
2005-10-31 16:30:23 +01:00
|
|
|
RANLIB=$(MING)ranlib
|
2005-11-08 02:35:49 +01:00
|
|
|
CFLAGS=-Wall -Wno-missing-braces -I$(ROOT)/include -I$(ROOT) -I$(ROOT)/kern -c -D_X86_ -DIS_32 -DWINDOWS -O2
|
2005-10-31 16:30:23 +01:00
|
|
|
O=o
|
|
|
|
FS=fs-win32
|
|
|
|
IP=win32
|
|
|
|
OS=win32
|
|
|
|
GUI=win32
|
2005-11-02 16:20:27 +01:00
|
|
|
LDFLAGS=-mwindows
|
2005-11-08 02:35:49 +01:00
|
|
|
LDADD=-lkernel32 -ladvapi32 -lgdi32 -lmpr -lwsock32 -lmsvcrt -lmingw32
|
2005-10-31 16:30:23 +01:00
|
|
|
TARG=drawterm.exe
|
|
|
|
|
|
|
|
# Windows via MSVC
|
|
|
|
#AR=???
|
|
|
|
#CC=cl
|
|
|
|
#CFLAGS=-c -nologo -W3 -YX -Zi -MT -Zl -Iinclude -DWINDOWS
|
|
|
|
#O=obj
|
|
|
|
#FS=fs-win32
|
|
|
|
#IP=win32
|
|
|
|
#OS=win32
|
|
|
|
#GUI=win32
|
|
|
|
|
2005-11-04 17:05:20 +01:00
|
|
|
all: default
|
2005-11-04 16:47:45 +01:00
|
|
|
|
2005-11-02 16:20:27 +01:00
|
|
|
# for root
|
|
|
|
libmachdep.a:
|
|
|
|
(cd win32-386; make)
|
|
|
|
|