summaryrefslogblamecommitdiffstats
path: root/yotk32/Makefile
blob: 04b19ff4ba330c3da75b30b8db6ae969d1c9de2c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                  
                              




                                                                

.PHONY: all clean
.SUFFIXES: .c.o .s.o

# some 32-bit function not implemented
#OBJ=str_out.o char_in.o str_in.o char_vga.o char_vhl.o strbasic.o

OBJ=str_out.o char_vga.o char_vhl.o strbasic.o
LIB=yotk32.a

all: $(LIB)

$(LIB): $(OBJ)
    ar rcs $@ $(OBJ)

.s.o:
    nasm -f elf32 $< -o $@
.c.o:
    gcc -m32 -ffreestanding -fleading-underscore -c $< -o $@

clean:
    rm -f $(LIB) $(OBJ)