initial commit
[pfinal.git] / Routix / src / tareas / makefile
blobca1783508dd5cbcd9a40a27e1da54422608195ae
2 CC = gcc
3 CFLAGS = -c -fpack-struct -ffreestanding
5 ASM = nasmw
6 AFLAGS = -f coff
8 LD = ld
9 LFLAGS = -r --cref
12 OBJDIR = ../../obj
13 SRCDIR = ../../src
14 INCDIR = ../../include
16 OBJECTS = timedeb.o taskdeb.o
19 all : taskdeb.a timedeb.o taskdeb.o
21 #Linkeo Parcial (-r)
22 taskdeb.a: $(OBJECTS)
23 $(LD) $(LFLAGS) $(OBJECTS) -o $(OBJDIR)/taskdeb.a > taskdeb.map
26 taskdeb.o: taskdeb.c $(INCDIR)/system.h
27 $(CC) $(CFLAGS) taskdeb.c -o taskdeb.o
29 timedeb.o: timedeb.c $(INCDIR)/system.h $(INCDIR)/stdio.h
30 $(CC) $(CFLAGS) timedeb.c -o timedeb.o
33 clean:
34 del *.o