rename target from sh.exe to baresh.exe to avoid namespace conflict.
[reactos.git] / posix / apps / baresh / Makefile
index 7d811ae..16e40b2 100644 (file)
@@ -1,18 +1,18 @@
-# $Id: Makefile,v 1.1 2002/01/20 21:22:29 ea Exp $
+# $Id: Makefile,v 1.8 2002/12/26 18:28:25 robd Exp $
 #
 # Tu run it in Win32 console mode, undefine __SUBSYSTEM_WINDOWS__
 # and pass "console" in the ld's --subsystem option.
 # 
 #
 #
 # Tu run it in Win32 console mode, undefine __SUBSYSTEM_WINDOWS__
 # and pass "console" in the ld's --subsystem option.
 # 
 #
-PATH_TO_TOP=../../../..
+PATH_TO_TOP=../../../reactos
 
 PATH_TO_PSX_TOP=../..
 
 
 PATH_TO_PSX_TOP=../..
 
-TARGET_NAME=sh
+TARGET_NAME=baresh
 
 CFLAGS=-D__SUBSYSTEM_WINDOWS__
 
 
 CFLAGS=-D__SUBSYSTEM_WINDOWS__
 
-OBJECTS=$(TARGET_NAME).o
+OBJECTS=sh.o $(TARGET_NAME).coff
 
 LIBRARIES=\
        $(PATH_TO_PSX_TOP)/lib/crt0w32.o \
 
 LIBRARIES=\
        $(PATH_TO_PSX_TOP)/lib/crt0w32.o \
@@ -28,6 +28,20 @@ $(TARGET_NAME): $(OBJECTS) $(LIBRARIES)
                -nostartfiles \
                -nostdlib
 
                -nostartfiles \
                -nostdlib
 
+$(TARGET_NAME).coff: sh.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
 include $(PATH_TO_TOP)/rules.mak
 
 # EOF