mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
d4dc1756c4
svn path=/trunk/; revision=3381
47 lines
804 B
Makefile
47 lines
804 B
Makefile
# $Id: Makefile,v 1.4 2002/08/23 12:40:56 ea Exp $
|
|
#
|
|
# Tu run it in Win32 console mode, undefine __SUBSYSTEM_WINDOWS__
|
|
# and pass "console" in the ld's --subsystem option.
|
|
#
|
|
#
|
|
PATH_TO_TOP=../../../reactos
|
|
|
|
PATH_TO_PSX_TOP=../..
|
|
|
|
TARGET_NAME=sh
|
|
|
|
CFLAGS=-D__SUBSYSTEM_WINDOWS__
|
|
|
|
OBJECTS=$(TARGET_NAME).o $(TARGET_NAME).coff
|
|
|
|
LIBRARIES=\
|
|
$(PATH_TO_PSX_TOP)/lib/crt0w32.o \
|
|
$(PATH_TO_TOP)/dk/psx/lib/psxdll.a
|
|
|
|
$(TARGET_NAME): $(OBJECTS) $(LIBRARIES)
|
|
$(CC) \
|
|
$(CFLAGS) \
|
|
$(OBJECTS) \
|
|
$(LIBRARIES)\
|
|
-o $@ \
|
|
-Wl,--subsystem,windows\
|
|
-nostartfiles \
|
|
-nostdlib
|
|
|
|
$(TARGET_NAME).coff: $(TARGET_NAME).rc
|
|
$(RC) \
|
|
--include-dir $(PATH_TO_TOP)/include \
|
|
--output-format coff \
|
|
$< $@
|
|
|
|
clean:
|
|
- $(RM) *.o
|
|
- $(RM) *.exe
|
|
- $(RM) *.coff
|
|
- $(RM) *.sym
|
|
|
|
|
|
|
|
include $(PATH_TO_TOP)/rules.mak
|
|
|
|
# EOF
|