Universidad de Costa RicaEscuela de Ciencias de la Computación e InformáticaCI-0118 Lenguajes ensambladoresMaterial |
|
| ci0118 / material / Bryant-OHallaron / code / 22-netprog2 / tiny / Makefile | |
CC = gcc
CFLAGS = -O2 -Wall -I .
# This flag includes the Pthreads library on a Linux box.
# Others systems will probably require something different.
LIB = -lpthread
all: tiny cgi
tiny: tiny.c csapp.o
$(CC) $(CFLAGS) -o tiny tiny.c csapp.o $(LIB)
csapp.o: csapp.c
$(CC) $(CFLAGS) -c csapp.c
cgi:
(cd cgi-bin; make)
clean:
rm -f *.o tiny *~
(cd cgi-bin; make clean)