.comment-link {margin-left:.6em;}

sticky scratch

Tuesday, October 26, 2004

sample Makefile

# THIS MAKEFILE IS NOT CORRECT!!
# IT WILL BE UPDATED AS SOON AS I CAN

CC = cc
FLAGS = -Wall -ansi
RM = rm -rf
SRC = *.c *.h

all: climount servxport

servxport: f_desempacotar.o f_empacotar.o servxport_codigofonte.o
${CC} -o $@ $^ ${FLAGS}

climount: f_desempacotar.o f_empacotar.o climount_codigofonte.o
${CC} -o $@ $^ ${FLAGS}

desempacotar.o: f_desempacotar.c main.c pacotes.h
${CC} -o $@ $^ ${FLAGS}

empacotar.o: empacotar.c main.c pacotes.h
${CC} -o $@ $^ ${FLAGS}

servxport.o: servxport_codigofonte.c main.c f_empacotar.c f_desempacotar.c pacotes.h
# ${CC} -o $@ $^ ${FLAGS}

climount_codigofonte.o: climount_codigofonte.c main.c f_empacotar.c f_desempacotar.c pacotes.h
# ${CC} -o $@ $^ ${FLAGS}

clean:
${RM} climount servxport *.o
tags:

etags $(SRC)
.c.o:
$(CC) -c $<

0 Comments:

Post a Comment

<< Home