csci4061/lab12-code/Makefile
Michael Zhang 041f660ccd
f
2018-01-29 17:28:37 -06:00

29 lines
476 B
Makefile

CFLAGS = -Wall -g
CC = gcc $(CFLAGS)
all : text2bin bin2text specific_stock
text2bin : text2bin.o
$(CC) -o $@ $^
text2bin.o : text2bin.c header.h
$(CC) -c $<
bin2text : bin2text.o
$(CC) -o $@ $^
bin2text.o : bin2text.c header.h
$(CC) -c $<
specific_stock : specific_stock.o
$(CC) -o $@ $^
specific_stock.o : specific_stock.c header.h
$(CC) -c $<
clean :
rm -f *.o actual.txt expect.txt valgrind.txt
realclean : clean
rm -f text2bin bin2text query_test