-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
40 lines (28 loc) · 801 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Makefile para el proyecto 1 de Sistemas operativos I
# Autores: Victor De Ponte
# Isaac Lopez
EXE1 = reinas_p
EXE2 = reinas_t
EXE3 = reinas
OBJS1 = main_p.o ${LIBS}
OBJS2 = main_t.o ${LIBS}
LIBS = reinascommon.o almacenamiento.o
TFLAGS = -lpthread
CFLAGS =
all: ${EXE1} ${EXE2} ${EXE3}
${EXE1}: ${OBJS1}
gcc ${CFLAGS} ${OBJS1} -o ${EXE1}
${EXE2}: ${OBJS2}
gcc ${CFLAGS} ${TFLAGS} ${OBJS2} -o ${EXE2}
${EXE3}: pReinas.c pReinas.h
gcc ${CFLAGS} pReinas.c -o ${EXE3}
main_p.o: main_p.c main_p.h
gcc ${CFLAGS} -c main_p.c
main_t.o: main_t.c main_t.h
gcc ${CFLAGS} -c main_t.c
reinascommon.o: reinascommon.c reinascommon.h
gcc ${CFLAGS} -c reinascommon.c
almacenamiento.o: almacenamiento.c almacenamiento.h
gcc ${CFLAGS} -c almacenamiento.c
clean:
rm *.o ${EXE1} ${EXE2} ${EXE3}