revert of mass delete of the posix subsystem. perhaps there is hope for it yet.
[reactos.git] / posix / apps / baresh / Makefile
1 # $Id: Makefile,v 1.7 2002/10/29 04:44:59 rex 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=../../../reactos
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_PSX_TOP)/lib/psxdll/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 clean:
38 - $(RM) *.o
39 - $(RM) *.exe
40 - $(RM) *.coff
41 - $(RM) *.sym
42
43
44
45 include $(PATH_TO_TOP)/rules.mak
46
47 # EOF