initial commit
[pfinal.git] / Routix / src / syscalls / makefile
blob628feb6a63089164630beffbcbf4373d292d77ed
3 CC = gcc
4 CFLAGS = -c -fpack-struct -ffreestanding -Wall -I$(INCDIR)
6 ASM = nasmw
7 AFLAGS = -f coff
9 LD = ld
10 LFLAGS = -r --cref
13 OBJDIR = ../../obj
14 SRCDIR = ../../src
15 INCDIR = ../../include
17 OBJECTS = syscalls.o syscalla.o sys_mem.o sys_proc.o sys_con.o sys_time.o \
18 sys_misc.o sys_signal.o exec.o
21 all : syscalls.a $(OBJECTS)
23 #Linkeo Parcial (-r)
24 syscalls.a: $(OBJECTS)
25 $(LD) $(LFLAGS) $(OBJECTS) -o $(OBJDIR)/syscalls.a > syscalls.map
28 syscalla.o: syscalls.asm
29 $(ASM) $(AFLAGS) syscalls.asm -o syscalla.o
31 syscalls.o: syscalls.c $(INCDIR)/routix/syscalls.h $(INCDIR)/routix/task.h
32 $(CC) $(CFLAGS) syscalls.c -o syscalls.o
34 sys_mem.o: sys_mem.c $(INCDIR)/routix/syscalls.h $(INCDIR)/routix/task.h
35 $(CC) $(CFLAGS) sys_mem.c -o sys_mem.o
37 sys_proc.o: sys_proc.c $(INCDIR)/routix/syscalls.h $(INCDIR)/routix/task.h \
38 $(INCDIR)/routix/allocwrap.h $(INCDIR)/routix/kalloc.h
39 $(CC) $(CFLAGS) sys_proc.c -o sys_proc.o
41 sys_con.o: sys_con.c $(INCDIR)/routix/syscalls.h $(INCDIR)/routix/task.h
42 $(CC) $(CFLAGS) sys_con.c -o sys_con.o
44 sys_time.o: sys_time.c $(INCDIR)/routix/syscalls.h $(INCDIR)/routix/task.h
45 $(CC) $(CFLAGS) sys_time.c -o sys_time.o
47 exec.o: exec.c $(INCDIR)/routix/syscalls.h $(INCDIR)/routix/task.h
48 $(CC) $(CFLAGS) exec.c -o exec.o
50 sys_misc.o: sys_misc.c $(INCDIR)/routix/syscalls.h $(INCDIR)/routix/task.h \
51 $(INCDIR)/routix/allocwrap.h $(INCDIR)/routix/kalloc.h
52 $(CC) $(CFLAGS) sys_misc.c -o sys_misc.o
54 sys_signal.o: sys_signal.c $(INCDIR)/routix/syscalls.h $(INCDIR)/routix/task.h $(INCDIR)/routix/system.h \
55 $(INCDIR)/signal.h $(INCDIR)/routix/signal.h
56 $(CC) $(CFLAGS) sys_signal.c -o sys_signal.o
58 clean:
59 del *.o