You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
359 B
Makefile

14 years ago
OUT=radish
OBJS=radish.o hiredis/hiredis.o hiredis/sds.o hiredis/net.o hiredis/async.o
CFLAGS=-O3 -Wall -Wextra -I.
LDFLAGS=-levent
prefix=/usr
all: $(OUT) Makefile
$(OUT): $(OBJS) Makefile
$(CC) $(LDFLAGS) -o $(OUT) $(OBJS)
%.o: %.c %.h Makefile
$(CC) -c $(CFLAGS) -o $@ $<
%.o: %.c Makefile
$(CC) -c $(CFLAGS) -o $@ $<
clean:
rm -f $(OBJS) $(OUT)