6727304871b4497455b4561d080c8a225bf5bf3c
[reactos.git] / reactos / hal / halx86 / Makefile
1 # $Id: Makefile,v 1.15 2004/11/28 01:30:01 hbirr Exp $
2
3 PATH_TO_TOP = ../..
4
5 default: all
6
7 #
8 # Build configuration
9 #
10 include $(PATH_TO_TOP)/rules.mak
11
12 #
13 # Global configuration
14 #
15 include $(TOOLS_PATH)/config.mk
16
17 TARGET_BOOTSTRAP = yes
18
19 TARGET_TYPE = hal
20
21 TARGET_BASENAME = hal
22
23 TARGET_DEFNAME = ../hal/hal
24
25 TARGET_ASFLAGS = -I$(PATH_TO_TOP)/include -I$(PATH_TO_TOP)/ntoskrnl/include -D__ASM__
26
27 TARGET_CFLAGS = -I./include -I$(PATH_TO_TOP)/ntoskrnl/include -Wall -Werror
28
29 # require os code to explicitly request A/W version of structs/functions
30 TARGET_CFLAGS += -D_DISABLE_TIDENTS
31
32
33 TARGET_NAME_UP = halx86up
34
35 TARGET_NAME_MP = halx86mp
36
37 ifeq ($(MP), 1)
38 TARGET_NAME = $(TARGET_NAME_MP)
39 else
40 TARGET_NAME = $(TARGET_NAME_UP)
41 endif
42
43 HAL_OBJECTS = \
44 adapter.o \
45 beep.o \
46 bus.o \
47 display.o \
48 dma.o \
49 drive.o \
50 enum.o \
51 fmutex.o \
52 halinit.o \
53 isa.o \
54 kdbg.o \
55 mca.o \
56 misc.o \
57 mp.o \
58 pci.o \
59 portio.o \
60 reboot.o \
61 spinlock.o \
62 sysbus.o \
63 sysinfo.o \
64 time.o \
65 timer.o
66
67 #pwroff.o
68
69 HAL_UP = \
70 $(HAL_OBJECTS) \
71 irql.o
72
73 HAL_MP = \
74 $(HAL_OBJECTS) \
75 apic.o \
76 mpsirql.o \
77 mpsboot.o \
78 mps.o
79
80 ifeq ($(MP), 1)
81 DEP_OBJECTS := $(HAL_MP)
82 else
83 DEP_OBJECTS := $(HAL_UP)
84 endif
85
86 TARGET_OBJECTS := $(DEP_OBJECTS) $(PATH_TO_TOP)/include/roscfg.h
87
88 # Note: Must be = and not := since $(DEP_FILES) is assigned a value below
89 TARGET_CLEAN = $(DEP_FILES) *.o *.dll
90
91 #
92 # Helper makefile
93 #
94 include $(TOOLS_PATH)/helper.mk
95
96 #
97 # Include automatic dependancy tracking
98 #
99 include $(TOOLS_PATH)/depend.mk
100
101 # EOF