Initial commit of kernel only
[tpg/acess2.git] / Kernel / drv / Makefile
1 # Acess2 Module/Driver Templater Makefile
2 # Makefile.tpl
3 ARCH = i386
4
5 CC = gcc
6 LD = ld
7
8 CPPFLAGS = -I../include -I../arch/$(ARCH)/include -DARCH=$(ARCH) -DBUILD_MODULE
9 CFLAGS = -Wall -Werror $(CPPFLAGS)
10
11 .PHONY: all clean
12
13 all: ata_x86.kmd
14
15 %.kmd:
16         $(CC) -shared -nostdlib -o $@ $<
17
18 %.o: %.c
19         $(CC) $(CFLAGS) -o $@ -c $<
20
21 ata_x86.kmd: ata_x86.o
22 bochsvbe.kmd: bochsvbe.o

UCC git Repository :: git.ucc.asn.au