Initial checkin of toy OS project.
[os.git] / kernel / rtl / Makefile
1 CC=                     gcc
2 CFLAGS=                 -Wall -imacros ../defines -I../inc
3 OBJS=                   string.o memory.o
4 RM=                     /bin/rm
5 NASM=                   nasm
6 NASMFLAGS=
7
8 .SUFFIXES: .c .o .asm
9
10 all: $(OBJS)
11
12 .c.o:
13         $(CC) $(CFLAGS) -c $<
14
15 .asm.o:
16         $(NASM) $(NASMFLAGS) -o $*.o $<
17
18 clean:
19         $(RM) -f $(OBJS) *~ #*# .#*