16 lines
294 B
Makefile
16 lines
294 B
Makefile
# 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
|