mirror of https://github.com/F-Stack/f-stack.git
24 lines
339 B
Makefile
24 lines
339 B
Makefile
STD=
|
|
WARN= -Wall
|
|
OPT= -O2
|
|
|
|
R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS)
|
|
R_LDFLAGS= $(LDFLAGS)
|
|
DEBUG= -g
|
|
|
|
R_CC=$(CC) $(R_CFLAGS)
|
|
R_LD=$(CC) $(R_LDFLAGS)
|
|
|
|
all: geohash.o geohash_helper.o
|
|
|
|
.PHONY: all
|
|
|
|
geohash.o: geohash.h geohash.c
|
|
geohash_helper.o: geohash.h geohash_helper.h geohash_helper.c
|
|
|
|
.c.o:
|
|
$(R_CC) -c $<
|
|
|
|
clean:
|
|
rm -f *.o
|