Merge branch 'glue' into base64-example

This commit is contained in:
Sven M. Hallberg 2013-02-17 15:26:15 +01:00
commit cc912fa98e
5 changed files with 7 additions and 6 deletions

View file

@ -19,13 +19,12 @@ LDFLAGS += $(pkg-config --libs glib-2.0)
all: dns base64 base64_sem1 base64_sem2
dns: LDFLAGS:=-L../src -lhammer $(LDFLAGS)
dns: dns.o rr.o dns_common.o glue.o
dns: dns.o rr.o dns_common.o
$(call hush, "Linking $@") $(CC) -o $@ $^ $(LDFLAGS)
dns.o: ../src/hammer.h dns_common.h
rr.o: ../src/hammer.h rr.h dns_common.h
dns_common.o: ../src/hammer.h dns_common.h
glue.o: ../src/hammer.h glue.h
base64%: LDFLAGS:=-L../src -lhammer $(LDFLAGS)
base64%: base64%.o

View file

@ -2,7 +2,7 @@
#define HAMMER_DNS_COMMON__H
#include "../src/hammer.h"
#include "glue.h"
#include "../src/glue.h"
const HParser* init_domain();
const HParser* init_character_string();

View file

@ -38,6 +38,7 @@ HAMMER_PARTS := \
system_allocator.o \
benchmark.o \
compile.o \
glue.o \
$(PARSERS:%=parsers/%.o) \
$(BACKENDS:%=backends/%.o)
@ -67,6 +68,7 @@ libhammer.a: $(HAMMER_PARTS)
bitreader.o: test_suite.h
hammer.o: hammer.h
glue.o: hammer.h glue.h
all: libhammer.a

View file

@ -21,11 +21,11 @@
// See the leading comment blocks on the sections below for more details.
//
#ifndef HAMMER_EXAMPLES_GLUE__H
#define HAMMER_EXAMPLES_GLUE__H
#ifndef HAMMER_GLUE__H
#define HAMMER_GLUE__H
#include <assert.h>
#include "../src/hammer.h"
#include "hammer.h"
//