34 lines
546 B
Makefile
34 lines
546 B
Makefile
CC = gcc
|
|
CFLAGS = -ansi -pedantic -g
|
|
OFILES = menu.o blocus.o utils.o graphics.o ia.o
|
|
EXE = exe
|
|
LIBS = -lgraph
|
|
|
|
install : $(EXE)
|
|
|
|
$(EXE) : $(OFILES)
|
|
$(CC) $(CFLAGS) -o $(EXE) $(OFILES) $(LIBS)
|
|
|
|
blocus.o : blocus.h menu.c graphics.c utils.c ia.c
|
|
|
|
menu.o : blocus.h
|
|
$(CC) $(CFLAGS) -c menu.c $(END)
|
|
|
|
graphics.o : blocus.h
|
|
$(CC) $(CFLAGS) -c graphics.c $(END)
|
|
|
|
utils.o : blocus.h
|
|
$(CC) $(CFLAGS) -c utils.c $(END)
|
|
|
|
ia.o : blocus.h
|
|
$(CC) $(CFLAGS) -c ia.c $(END)
|
|
|
|
run : install
|
|
./$(EXE)
|
|
|
|
clean :
|
|
rm -r *.o
|
|
|
|
cleanall : clean
|
|
rm -r $(EXE)
|