next up previous
Seguinte: pcv.h, inout.h e inout.c Acima: Códigos-fonte: Solução por heurística Anterior: Códigos-fonte: Solução por heurística

makefile


001   CFLAGS=-Wall
002   HEADERS=heuristica.h inout.h priorqueue.c pcv.h
003   OBJECTS=heuristica.o inout.o priorqueue.o main.o
004
005   all: main.exe
006   
007   run: all
008       ./main.exe brazil58.tsp > saida
009
010   main.exe: $(OBJECTS) $(HEADERS)
011       gcc $(CFLAGS) $(OBJECTS) -o main.exe
012   
013   main.o: main.c $(HEADERS)
014       gcc $(CFLAGS) -c main.c
015   
016   heuristica.o: heuristica.c $(HEADERS)
017       gcc $(CFLAGS) -c heuristica.c
018   
019   inout.o: inout.c $(HEADERS)
020       gcc $(CFLAGS) -c inout.c
021   
022   priorqueue.o: priorqueue.c $(HEADERS)
023       gcc $(CFLAGS) -c priorqueue.c
024   
025   clean:
026       rm -f $(OBJECTS) main.exe
027   
028   pack:
029       rm -f tp.tar.gz
030       tar czvf tp.tar.gz makefile brazil58.tsp *.c *.h



VilarNt 2003-06-20