csci3081/class-repo-public/Exercises/classDefRobots/makefile

19 lines
311 B
Makefile
Raw Permalink Normal View History

2018-01-29 23:24:20 +00:00
# CSCI3081 robot exercise makefile
CC = g++
DEBUG = -g
CFLAGS = -Wall -c $(DEBUG)
LFLAGS = -Wall $(DEBUG)
all: main.o robot.o
$(CC) $(LFLAGS) main.o robot.o -o robot
main.o : main.cpp
$(CC) $(CFLAGS) main.cpp -o main.o
robot.o : robot.cpp
$(CC) $(CFLAGS) robot.cpp -o robot.o
clean:
\rm *.o *.*~ robot