initial commit
[pfinal.git] / Routix / tareas / lib / makefile
blob037c4267d8f77c6baf853bf52c051250f993ba39
2 CC = gcc
3 CFLAGS = -c -ffreestanding -fwritable-strings -fpack-struct -Wall -I$(INCDIR)
5 ASM = nasmw
6 AFLAGS = -f aout
8 OBJDIR = obj
9 SRCDIR = src
10 INCDIR = ../../include
12 RoutixStd = RoutixStd
13 Str = string
14 Alloc = alloc
16 OBJECTS = routix.o string.o alloc.o
18 all : routstd.a $(OBJECTS)
20 #Crear "libreria" routstd.a (Routix Standar)
21 routstd.a: $(OBJECTS)
22 ar r routstd.a $(OBJECTS)
24 #Routix-Standar
25 routix.o: $(RoutixStd)/routix.c
26 $(CC) $(CFLAGS) $(RoutixStd)/routix.c -o routix.o
28 #String
29 string.o: $(Str)/string.c
30 $(CC) $(CFLAGS) $(Str)/string.c -o string.o
32 #Alloc
33 alloc.o: $(Alloc)/alloc.c
34 $(CC) $(CFLAGS) $(Alloc)/alloc.c -o alloc.o
36 clean:
37 rm *.a
38 rm *.o
39 del *.a
40 del *.o