500af64eec5cde694993f1c9209e86b9250d8bed
[reactos.git] / reactos / iface / native / makefile
1 # $Id: makefile,v 1.9 1999/08/29 13:44:52 dwelch Exp $
2 #
3 # ReactOS Operating System
4 #
5 # Generate:
6 # - genntdll
7 # - ntoskrnl.exe service table;
8 # - ntoskrnl.exe Zw functions stubs to call Nt functions from kernel mode;
9 # - ntdll.dll stubs to call system functions from user mode applications.
10 #
11 TARGET = genntdll
12 SYSTEM_CALLS_DB = sysfuncs.lst
13 NTDLL_STUBS = ../../lib/ntdll/napi.c
14 KERNEL_SERVICE_TABLE = ../../include/ntdll/napi.h
15 KERNEL_ZW_CALLS = ../../ntoskrnl/nt/zw.c
16 NAPI_FILES = $(NTDLL_STUBS) $(KERNEL_SERVICE_TABLE) $(KERNEL_ZW_CALLS)
17
18 BASE_CFLAGS = -I../../include
19
20 all: $(TARGET)$(EXE_POSTFIX) $(NAPI_FILES)
21
22 $(NAPI_FILES): $(SYSTEM_CALLS_DB) $(TARGET)$(EXE_POSTFIX)
23 ./$(TARGET)$(EXE_POSTFIX) \
24 $(SYSTEM_CALLS_DB) \
25 $(NTDLL_STUBS) \
26 $(KERNEL_SERVICE_TABLE) \
27 $(KERNEL_ZW_CALLS)
28
29 # (rjj) i removed the following option from line below: -If:\gnu\mingw32\include
30 $(TARGET)$(EXE_POSTFIX): $(TARGET).c
31 $(NATIVE_CC) -g $(TARGET).c -o $(TARGET)$(EXE_POSTFIX)
32
33 clean:
34 - $(RM) $(TARGET)$(EXE_POSTFIX)
35 ifeq ($(DOSCLI),yes)
36 - $(RM) ..\..\lib\ntdll\napi.c
37 - $(RM) ..\..\include\ntdll\napi.h
38 - $(RM) ..\..\ntoskrnl\nt\zw.c
39 else
40 - $(RM) $(NTDLL_STUBS)
41 - $(RM) $(KERNEL_SERVICE_TABLE)
42 - $(RM) $(KERNEL_ZW_CALLS)
43 endif
44
45 .PHONY: all clean
46
47 include ../../rules.mak