2002-06-08 16:28:05 +00:00
|
|
|
# $Id: Makefile,v 1.3 2002/06/08 16:28:03 ea Exp $
|
2002-01-20 21:22:29 +00:00
|
|
|
#
|
|
|
|
# Tu run it in Win32 console mode, undefine __SUBSYSTEM_WINDOWS__
|
|
|
|
# and pass "console" in the ld's --subsystem option.
|
|
|
|
#
|
|
|
|
#
|
2002-06-08 16:28:05 +00:00
|
|
|
PATH_TO_TOP=../../../reactos
|
2002-01-20 21:22:29 +00:00
|
|
|
|
|
|
|
PATH_TO_PSX_TOP=../..
|
|
|
|
|
|
|
|
TARGET_NAME=sh
|
|
|
|
|
|
|
|
CFLAGS=-D__SUBSYSTEM_WINDOWS__
|
|
|
|
|
2002-04-07 13:53:51 +00:00
|
|
|
OBJECTS=$(TARGET_NAME).o $(TARGET_NAME).coff
|
2002-01-20 21:22:29 +00:00
|
|
|
|
|
|
|
LIBRARIES=\
|
|
|
|
$(PATH_TO_PSX_TOP)/lib/crt0w32.o \
|
2002-04-07 13:53:51 +00:00
|
|
|
$(PATH_TO_TOP)/dk/psx/lib/psxdll.a
|
2002-01-20 21:22:29 +00:00
|
|
|
|
|
|
|
$(TARGET_NAME): $(OBJECTS) $(LIBRARIES)
|
|
|
|
$(CC) \
|
|
|
|
$(CFLAGS) \
|
|
|
|
$(OBJECTS) \
|
|
|
|
$(LIBRARIES)\
|
|
|
|
-o $@ \
|
|
|
|
-Wl,--subsystem,windows\
|
|
|
|
-nostartfiles \
|
|
|
|
-nostdlib
|
|
|
|
|
2002-04-07 13:53:51 +00:00
|
|
|
$(TARGET_NAME).coff: $(TARGET_NAME).rc
|
|
|
|
$(RC) \
|
|
|
|
--include-dir $(PATH_TO_TOP)/include \
|
|
|
|
--output-format coff \
|
|
|
|
$< $@
|
|
|
|
|
|
|
|
|
2002-01-20 21:22:29 +00:00
|
|
|
include $(PATH_TO_TOP)/rules.mak
|
|
|
|
|
|
|
|
# EOF
|