huffman/Makefile

14 lines
198 B
Makefile
Raw Normal View History

2016-10-05 10:52:58 +00:00
CC=gcc
CFLAGS=-Wall -std=c99
2016-10-05 10:52:58 +00:00
SRC=src
2016-10-22 00:55:02 +00:00
PROG=huffman
2016-10-05 10:52:58 +00:00
2016-10-22 00:55:02 +00:00
all: main.o compress.o huftree.o display.o common.o
$(CC) $^ $(CFLAGS) -o $(PROG)
2016-10-05 10:52:58 +00:00
%.o: src/%.c
$(CC) $(CFLAGS) -c $^
2016-10-05 10:52:58 +00:00
clean:
rm -f $(PROG) *.o