8b82c04da858c3639f14e4a75ee8f4d30456d18e
[reactos.git] / posix / tools / Makefile
1 # $Id: Makefile,v 1.4 2002/10/29 04:45:58 rex Exp $
2 #
3 # Tool to generate the POSIX+ server system calls table
4 # and other auxiliary C files.
5 #
6 PATH_TO_TOP=../../reactos
7 PATH_TO_PSX_TOP=..
8
9 TARGET_NAME=mksystab
10 SYSCALL_DB=syscall.db
11 SYSTAB_C=$(PATH_TO_PSX_TOP)/server/call/syscall.c
12 SYSTAB_H=$(PATH_TO_PSX_TOP)/server/include/syscall.h
13 SYSCALL_H=$(PATH_TO_PSX_TOP)/include/psx/syscall.h
14 STUBS_C=$(PATH_TO_PSX_TOP)/server/call/stubs.c
15
16 all: systab
17
18 $(TARGET_NAME)$(EXE_POSTFIX): $(TARGET_NAME).c
19 $(CC) $(CFLAGS) -o $(TARGET_NAME)$(EXE_POSTFIX) $(TARGET_NAME).c
20
21 systab: $(TARGET_NAME)$(EXE_POSTFIX)
22 $(TARGET_NAME)$(EXE_POSTFIX) \
23 $(SYSCALL_DB) \
24 $(SYSTAB_C) \
25 $(SYSTAB_H) \
26 $(SYSCALL_H) \
27 $(STUBS_C)
28
29 clean:
30 - $(RM) $(TARGET_NAME)$(EXE_POSTFIX)
31 - $(RM) *.o
32 - $(RM) $(SYSTAB_C)
33 - $(RM) $(SYSTAB_H)
34 - $(RM) $(SYSCALL_H)
35 - $(RM) $(STUBS_C)
36
37 include $(PATH_TO_TOP)/rules.mak
38
39 # EOF