summaryrefslogtreecommitdiff
path: root/Makefile
blob: ecc1607aca77c602e2449b3242efd88d487f4a37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $Id$

CC = g++
CPPFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes

OBJECTS = main.o mtxinteger.o
BINARY = mtx

.PHONY: clean

$(BINARY): $(OBJECTS)
	$(CC) $(CPPFLAGS) -o $(BINARY) $(OBJECTS)

main.o: main.cc mtxinteger.h 
	$(CC) $(CPPFLAGS) -c -o main.o main.cc

mtxinteger.o: mtxinteger.cc mtxinteger.h
	$(CC) $(CPPFLAGS) -c -o mtxinteger.o mtxinteger.cc

clean:
	rm -f $(BINARY) *.o