Skip to content
Snippets Groups Projects
Commit 8b136ead authored by Jake Feddersen's avatar Jake Feddersen
Browse files

Tar file and start assignment 2

parent 0c42f4c0
No related branches found
No related tags found
No related merge requests found
File added
CC = gcc
CXX = g++
ECHO = echo
RM = rm -f
TERM = "S2019"
CFLAGS = -Wall -Werror -ggdb3 -lm -lncurses
CXXFLAGS = -Wall -Werror -ggdb -lm -lncurses
LDFLAGS = -lncurses
BIN = battleship
OBJS = battleship.o
all: $(BIN)
$(BIN): $(OBJS)
@$(ECHO) Linking $@
@$(CXX) $^ -o $@ $(LDFLAGS)
-include $(OBJS:.o=.d)
%.o: %.c
@$(ECHO) Compiling $<
@$(CC) $(CFLAGS) -MMD -MF $*.d -c $<
%.o: %.cpp
@$(ECHO) Compiling $<
@$(CXX) $(CXXFLAGS) -MMD -MF $*.d -c $<
.PHONY: all clean clobber
clean:
@$(ECHO) Removing all generated files
@$(RM) *.o $(BIN) *.d TAGS core vgcore.* gmon.out
clobber: clean
@$(ECHO) Removing backup files
@$(RM) *~ \#* *pgm
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment