initial commit
[pfinal.git] / Routix / src / sched / makefile
blobdf0516dd087ad344cd7ed3bb1d3a219a03b005bc
1 #Makefile relacionado al switcheo de tareas
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 = task.o taska.o sched.o
20 all : sched.a task.o taska.o sched.o
22 #Linkeo Parcial (-r)
23 sched.a: $(OBJECTS)
24 $(LD) $(LFLAGS) $(OBJECTS) -o $(OBJDIR)/sched.a > sched.map
27 taska.o: task.asm
28 $(ASM) $(AFLAGS) task.asm -o taska.o
30 task.o: task.c $(INCDIR)/routix/system.h $(INCDIR)/routix/task.h
31 $(CC) $(CFLAGS) task.c -o task.o
33 sched.o: sched.c $(INCDIR)/routix/system.h $(INCDIR)/routix/task.h $(INCDIR)/routix/debug.h \
34 $(INCDIR)/routix/segm.h $(INCDIR)/routix/paging.h
35 $(CC) $(CFLAGS) sched.c -o sched.o
37 clean:
38 del *.o