mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 16:48:27 -05:00
24 lines
342 B
Makefile
24 lines
342 B
Makefile
|
STD=
|
||
|
WARN= -Wall
|
||
|
OPT= -Ofast
|
||
|
|
||
|
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
|