Ported ACPI CA (from the nice guys at Intel) to ReactOS (ACPI bus driver).
[reactos.git] / reactos / drivers / bus / isapnp / makefile
1 PATH_TO_TOP = ../../..
2
3 TARGET=isapnp
4
5 CFLAGS = -I.
6
7 LIBS = $(PATH_TO_TOP)/ntoskrnl/ntoskrnl.a
8
9 OBJECTS = \
10 isapnp.o \
11 $(TARGET).coff \
12 $(LIBS)
13
14
15 all: $(TARGET).sys.unstripped $(TARGET).sys
16
17 .phony: all
18
19
20 $(TARGET).coff: $(TARGET).rc $(PATH_TO_TOP)/include/reactos/resource.h
21
22 $(TARGET).sys $(TARGET).sys.unstripped: $(OBJECTS)
23
24
25 ifeq ($(DOSCLI),yes)
26 CLEAN_FILES = *.o $(TARGET).o $(TARGET).a junk.tmp base.tmp temp.exp \
27 $(TARGET).exe $(TARGET).nostrip.exe $(TARGET).sym $(TARGET).coff
28 else
29 CLEAN_FILES = *.o $(TARGET).o $(TARGET).a junk.tmp base.tmp temp.exp \
30 $(TARGET).exe $(TARGET).nostrip.exe $(TARGET).sym $(TARGET).coff
31 endif
32
33
34 clean: $(CLEAN_FILES:%=%_clean)
35
36 $(CLEAN_FILES:%=%_clean): %_clean:
37 - $(RM) $*
38
39 .PHONY: clean $(CLEAN_FILES:%=%_clean)
40
41
42 install: $(FLOPPY_DIR)/drivers/$(TARGET).sys
43
44 $(FLOPPY_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
45 $(CP) $(TARGET).sys $(FLOPPY_DIR)/drivers/$(TARGET).sys
46
47 dist: $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
48
49 $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys: $(TARGET).sys
50 $(CP) $(TARGET).sys $(PATH_TO_TOP)/$(DIST_DIR)/drivers/$(TARGET).sys
51
52 WITH_DEBUGGING=yes
53 WARNINGS_ARE_ERRORS = yes
54
55 include $(PATH_TO_TOP)/rules.mak