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
365 B
Makefile
21 lines
365 B
Makefile
OUT=turnip
|
|
OBJS=turnip.o hiredis/hiredis.o hiredis/sds.o hiredis/net.o hiredis/async.o
|
|
CFLAGS=-O0 -ggdb -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)
|
|
|