aboutsummaryrefslogtreecommitdiffstats
path: root/csci4061/091420_breakout/Makefile
blob: 1e807a902afd0edc4a1a0a2931782137c9779567 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC=gcc
CFLAGS=-I./include
OBJ=main.o name.o address.o major.o
EXE=w2.out

all: $(EXE)

$(EXE): $(OBJ)
	$(CC) -o $@ $^ $(CFLAGS)

%.o: %.c
	$(CC) -c -o $@ $< $(CFLAGS)
clean:
	rm *.o $(EXE)
run:
	./$(EXE)