TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
endif
+W32API_PATH = $(PATH_TO_TOP)/../reactos/w32api
+
#
# Choose various options
#
SEP = \$($EMPTY_VAR)
endif
+# Set INSTALL_DIR to default value if not already set
+# ifeq ($(INSTALL_DIR),)
+INSTALL_DIR = $(PATH_TO_TOP)/reactos
+# endif
+
#
# Create variables for all the compiler tools
#
LEAN_AND_MEAN_DEFINE =
endif
-CPP = $(PREFIX)g++
+CXX = $(PREFIX)g++
CC = $(PREFIX)gcc
NATIVE_CC = gcc
CFLAGS = \
-Wall \
-Wstrict-prototypes \
-fno-builtin \
+ -I$(W32API_PATH)/include \
$(LEAN_AND_MEAN_DEFINE) \
$(DEFINES) \
$(DEBUGGING_CFLAGS) \
RSYM = $(TOOLS_PATH)/rsym
%.o: %.cpp
- $(CPP) $(CFLAGS) -c $< -o $@
+ $(CXX) $(CFLAGS) -c $< -o $@
%.o: %.cc
- $(CPP) $(CFLAGS) -c $< -o $@
+ $(CXX) $(CFLAGS) -c $< -o $@
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
%.o: %.asm