-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (33 loc) · 988 Bytes
/
Makefile
File metadata and controls
41 lines (33 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# # # # # # #
# Makefile for assignment 2
#
# created May 2018
# Matt Farrugia <matt.farrugia@unimelb.edu.au>
#
CC = gcc
CFLAGS = -Wall -std=c99 -g
# modify the flags here ^
EXE = FR_main
OBJ = FR.o equivalence.o bryant.o bryantPrint.o frPrint.o
# add any new object files here ^
# top (default) target
all: $(EXE)
# how to link executable
$(EXE): $(OBJ)
$(CC) $(CFLAGS) -o $(EXE) $(OBJ)
# other dependencies
FR.o: FR.h bryant.h equivalence.h bryantPrint.h
equivalence.o: bryant.h equivalence.h
bryant.o: bryant.h var.h
frPrint.o: frPrint.h FR.h equivalence.h
# ^ add any new dependencies here (for example if you add new modules)
# phony targets (these targets do not represent actual files)
.PHONY: clean cleanly all CLEAN
# `make clean` to remove all object files
# `make CLEAN` to remove all object and executable files
# `make cleanly` to `make` then immediately remove object files (inefficient)
clean:
rm -f $(OBJ)
CLEAN: clean
rm -f $(EXE)
cleanly: all clean