summaryrefslogtreecommitdiff
path: root/kernel/hal/Makefile
blob: 3725f18df6ced55e554c1d5c6392b5e5adfd1450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC=				gcc
CFLAGS= 		-Wall -imacros ../defines -I../inc
OBJS=			video.o io.o interrupts.o intsupport.o keyboard.o timer.o \
				timestamp.o counters.o
RM=				/bin/rm
NASM=			nasm
NASMFLAGS=		-f elf

.SUFFIXES: .c .o .asm

all: $(OBJS)

.c.o:
	$(CC) $(CFLAGS) -c $<

.asm.o:
	$(NASM) $(NASMFLAGS) -o $*.o $<

clean:
	$(RM) -f $(OBJS) *~ #*# .#*