Files
reactos/reactos/iface/native/makefile
David Welch ddfa2017c7 Added .o -> .sys rule to simplify driver makefiles
Added PATH_TO_ROOT variable to most makefiles
Added system independant install utility
Implemented prototype system for changing individual regions without a
memory area
Added some interesting articles from usenet

svn path=/trunk/; revision=1306
2000-08-18 22:27:09 +00:00

50 lines
1.3 KiB
Makefile

# $Id: makefile,v 1.10 2000/08/18 22:26:58 dwelch Exp $
#
# ReactOS Operating System
#
# Generate:
# - genntdll
# - ntoskrnl.exe service table;
# - ntoskrnl.exe Zw functions stubs to call Nt functions from kernel mode;
# - ntdll.dll stubs to call system functions from user mode applications.
#
PATH_TO_TOP = ../..
TARGET = genntdll
SYSTEM_CALLS_DB = sysfuncs.lst
NTDLL_STUBS = ../../lib/ntdll/napi.c
KERNEL_SERVICE_TABLE = ../../include/ntdll/napi.h
KERNEL_ZW_CALLS = ../../ntoskrnl/nt/zw.c
NAPI_FILES = $(NTDLL_STUBS) $(KERNEL_SERVICE_TABLE) $(KERNEL_ZW_CALLS)
BASE_CFLAGS = -I../../include
all: $(TARGET)$(EXE_POSTFIX) $(NAPI_FILES)
$(NAPI_FILES): $(SYSTEM_CALLS_DB) $(TARGET)$(EXE_POSTFIX)
./$(TARGET)$(EXE_POSTFIX) \
$(SYSTEM_CALLS_DB) \
$(NTDLL_STUBS) \
$(KERNEL_SERVICE_TABLE) \
$(KERNEL_ZW_CALLS)
# (rjj) i removed the following option from line below: -If:\gnu\mingw32\include
$(TARGET)$(EXE_POSTFIX): $(TARGET).c
$(NATIVE_CC) -g $(TARGET).c -o $(TARGET)$(EXE_POSTFIX)
clean:
- $(RM) $(TARGET)$(EXE_POSTFIX)
ifeq ($(DOSCLI),yes)
- $(RM) ..\..\lib\ntdll\napi.c
- $(RM) ..\..\include\ntdll\napi.h
- $(RM) ..\..\ntoskrnl\nt\zw.c
else
- $(RM) $(NTDLL_STUBS)
- $(RM) $(KERNEL_SERVICE_TABLE)
- $(RM) $(KERNEL_ZW_CALLS)
endif
.PHONY: all clean
include ../../rules.mak