-# $Id: Makefile,v 1.1 2002/01/20 21:22:29 ea Exp $
+# $Id: Makefile,v 1.7 2002/10/29 04:44:59 rex Exp $
#
# 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=../..
CFLAGS=-D__SUBSYSTEM_WINDOWS__
-OBJECTS=$(TARGET_NAME).o
+OBJECTS=$(TARGET_NAME).o $(TARGET_NAME).coff
LIBRARIES=\
$(PATH_TO_PSX_TOP)/lib/crt0w32.o \
-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