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

20 lines
291 B
Makefile

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