From d1a1990c4177653fd2379c227142e6208ecfc20d Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 4 Sep 2019 20:29:20 -0400 Subject: Fix typos in headers --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 906d19d..f772350 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,10 @@ objfiles = $(objs:%=build/%.o) TEST_1_NAME = t/test_1$(BIN_POSTFIX) TEST_2_NAME = t/test_2$(BIN_POSTFIX) +examples=hello variable +example_bins=$(examples:%=examples/%$(BIN_POSTFIX)) +example_objs=$(examples:%=examples/%.o) + $(LIBNAME): $(objfiles) ar rc $@ $^ ranlib $@ @@ -36,6 +40,14 @@ test: $(TEST_1_NAME) $(TEST_2_NAME) #$(TEST_1_NAME) $(TEST_2_NAME) +examples: $(example_bins) + $(example_bins) +$(example_bins): %$(BIN_POSTFIX) : %.o + $(CC) $(CFLAGS) -o $@ $< -lctemplates + +$(example_objs): %.o : %.c + $(CC) -I./include -L. -c -o $@ $< -lctemplates + install: $(LIBNAME) cp $(LIBNAME) /usr/local/lib mkdir -p /usr/local/include/ctemplates -- cgit v1.2.3-70-g09d2