## Override the following if needed
CC = gcc
OPT_CFLAGS = -O2 -Wall -Wno-unused -Wno-uninitialized
EXTRA_CFLAGS = 
EXTRA_LIBS = 
YACC = bison -y

CFLAGS = $(OPT_CFLAGS) $(EXTRA_CFLAGS)
LIBS = $(EXTRA_LIBS)

## You shouldn't need to edit anything below
objects = cmp.o stat_flags.o ls.o main.o print.o util.o bsdport.o

ls : $(objects)
	$(CC) -o ls $(objects) $(LIBS)

cmp.o ls.o print.o util.o : extern.h ls.h
bsdport.o print.o : bsdport.h

.PHONY : clean all
all : ls
clean :
	-rm ls $(objects)
