Version info script added.
[reactos.git] / posix / apps / baresh / Makefile
1 # $Id: Makefile,v 1.2 2002/04/07 13:53:51 ea Exp $
2 #
3 # Tu run it in Win32 console mode, undefine __SUBSYSTEM_WINDOWS__
4 # and pass "console" in the ld's --subsystem option.
5 #
6 #
7 PATH_TO_TOP=../../../..
8
9 PATH_TO_PSX_TOP=../..
10
11 TARGET_NAME=sh
12
13 CFLAGS=-D__SUBSYSTEM_WINDOWS__
14
15 OBJECTS=$(TARGET_NAME).o $(TARGET_NAME).coff
16
17 LIBRARIES=\
18 $(PATH_TO_PSX_TOP)/lib/crt0w32.o \
19 $(PATH_TO_TOP)/dk/psx/lib/psxdll.a
20
21 $(TARGET_NAME): $(OBJECTS) $(LIBRARIES)
22 $(CC) \
23 $(CFLAGS) \
24 $(OBJECTS) \
25 $(LIBRARIES)\
26 -o $@ \
27 -Wl,--subsystem,windows\
28 -nostartfiles \
29 -nostdlib
30
31 $(TARGET_NAME).coff: $(TARGET_NAME).rc
32 $(RC) \
33 --include-dir $(PATH_TO_TOP)/include \
34 --output-format coff \
35 $< $@
36
37
38 include $(PATH_TO_TOP)/rules.mak
39
40 # EOF