hexagram/examples/Makefile

22 lines
334 B
Makefile
Raw Normal View History

2018-12-16 11:37:04 -06:00
include ../mk/build.mk
CC = $(CROSS)cc
INCLUDE_PATH = ../include
CFLAGS += -I$(INCLUDE_PATH)
LDFLAGS = -L../src -lhexagram
2019-02-16 01:39:43 -06:00
STATIC = ../src/libhexagram.a
2018-12-16 11:37:04 -06:00
2019-02-12 20:55:40 -06:00
EXAMPLES = capture convert pcapread replay
2018-12-16 11:37:04 -06:00
RM = /bin/rm
all: $(EXAMPLES)
2019-02-16 01:39:43 -06:00
$(EXAMPLES): %: %.c $(STATIC)
$(CC) $(CFLAGS) $< -o $@ $(STATIC)
2018-12-16 11:37:04 -06:00
clean:
$(RM) -f $(EXAMPLES)