Files
CS-Classes/CS202/Assignment_2/ObjectCode/makefile copy
2025-06-17 14:42:22 -07:00

19 lines
281 B
Plaintext

CC = g++
CFLAGS= -Wall -Wextra -pedantic -std=c++11 -g
DEPS = item.h player.h
OBJS = main.o item.o player.o
TARGET = a.out
all: $(TARGET)
%.o: %.cpp $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
$(TARGET): $(OBJS)
$(CC) -o $@ $^ $(CFLAGS)
.PHONY: clean
clean:
rm $(OBJS) $(TARGET)