Typing-Test-C/Makefile
Aidan Haas 9aef889343
Implemented parse_words_file and generate_random
Program now ready for UI typing test to be implemented.
Updated Makefile to reflect changes in project.
Created debugger.c to more easily work on utilities.
2022-11-07 21:08:47 -05:00

28 lines
581 B
Makefile

# Macros
CC = gcc
CFLAGS = -ansi -Wall -g -O0 -Wshadow -Wwrite-strings \
-fstack-protector-all
LDLIBS = -lncurses
all: typing_test debugger
# Create executables
typing_test: typing_test.o utilities.o
$(CC) -o typing_test typing_test.o utilities.o $(LDLIBS)
debugger: debugger.o utilities.o
$(CC) -o debugger debugger.o utilities.o
typing_test.o: typing_test.c
$(CC) $(CFLAGS) -c typing_test.c $(LDLIBS)
debugger.o: debugger.c utilities.h
$(CC) $(CFLAGS) -c debugger.c
utilities.o: utilities.c
$(CC) $(CFLAGS) -c utilities.c
clean:
@echo "Cleaning system"
@rm -f *.o