all repos — min @ 35ffae135e2415a49d19c673337ed3f01b915d00

A small but practical concatenative programming language.

vendor/linenoise/Makefile

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
STD=
WARN= -Wall -Wno-comment
OPT= -Os

CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS)
LDFLAGS= $(LDFLAGS)
DEBUG= -g

CC := $(CC) $(R_CFLAGS)
LD := $(CC) $(R_LDFLAGS)


linenoise.o: linenoise.h linenoise.c

linenoise_example: linenoise.o example.o
	$(LD) -o $@ $^

.c.o:
	$(CC) -c $<

clean:
	rm -f linenoise_example *.o