csci3081/repo-zhan4854/exercises/dynamicallocation/Makefile

17 lines
294 B
Makefile
Raw Permalink Normal View History

2018-01-29 23:24:20 +00:00
# CSCI3081 In-Class Exercise dynamic allocation and arrays
CC = g++
DEBUG = -g
CFLAGS = -Wall -c $(DEBUG)
LFLAGS = -Wall $(DEBUG)
OBJS = array_pointer_test.o duck.o
all: main.o $(OBJS)
$(CC) $(LFLAGS) -o ducks main.o $(OBJS)
%.o : %.cc
$(CC) $(CFLAGS) -o $@ $<
clean:
\rm *.o *.*~ ducks