aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: c83210beffb57440afdb4429f5b09d23d2ba7813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ifndef DPP_ROOT
$(error DPP_ROOT is undefined)
endif

include $(DPP_ROOT)/Makefile.inc

DRIVER_NAME = driver
DRIVER_OBJECTS = $(DRIVER_NAME).o
DRIVER_TARGET = $(DRIVER_NAME).sys

all: $(DRIVER_TARGET)

clean:
	rm -f $(DRIVER_OBJECTS) $(DRIVER_TARGET)

%.o: %.cpp
	$(call BUILD_CPP_OBJECT,$<,$@)

$(DRIVER_TARGET): $(DRIVER_OBJECTS)
	$(call LINK_CPP_KERNEL_TARGET,$(DRIVER_OBJECTS),$@)