Makefile 239 Bytes
Newer Older
Matthias Rüster's avatar
Matthias Rüster committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CC = g++
CFLAGS = -I. -lm -Wall -O3
DEPS = cOgrd.h utilits.h
OBJ = cOgrd.o cOgrdIO.o utilits.o srtmRead.o
.PHONY: clean

srtmRead: $(OBJ)
	$(CC) -o $@ $^ $(CFLAGS)

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

clean:
	rm -f srtmRead *.o