mirror of https://github.com/getdnsapi/getdns.git
using suffixes in Makefile, moved changed files from src to common (merged)
This commit is contained in:
parent
bd186ebca0
commit
18d58a5892
|
@ -15,17 +15,19 @@ srcdir = .
|
||||||
|
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-g -I$(srcdir)/ -std=c99
|
CFLAGS=-Wall -g -fPIC -I$(srcdir)/ -std=c99
|
||||||
LDFLAGS=-L.
|
LDFLAGS=-L.
|
||||||
LDLIBS=-levent_core -lldns -lgetdns
|
LDLIBS=-levent_core -lldns -lgetdns
|
||||||
PROGRAMS=example-simple-answers example-tree example-all-functions example-synchronous
|
PROGRAMS=example-simple-answers example-tree example-all-functions example-synchronous
|
||||||
|
|
||||||
|
.SUFFIXES: .c .o .a .lo .h
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
all: libgetdns example-simple-answers example-tree example-all-functions example-synchronous
|
all: libgetdns example-simple-answers example-tree example-all-functions example-synchronous
|
||||||
|
|
||||||
getdns_core_only.o: getdns_core_only.c
|
libgetdns: getdns_core_only.o getdns_sync.o getdns_context.o
|
||||||
$(CC) -c -Wall -fPIC $(CFLAGS) $^
|
|
||||||
|
|
||||||
libgetdns: getdns_core_only.c
|
|
||||||
$(CC) $(CFLAGS) -shared -o libgetdns.so $^
|
$(CC) $(CFLAGS) -shared -o libgetdns.so $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -15,17 +15,19 @@ srcdir = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-g -I$(srcdir)/ -std=c99
|
CFLAGS=-Wall -g -fPIC -I$(srcdir)/ -std=c99
|
||||||
LDFLAGS=-L.
|
LDFLAGS=-L.
|
||||||
LDLIBS=-levent_core -lldns -lgetdns
|
LDLIBS=-levent_core -lldns -lgetdns
|
||||||
PROGRAMS=example-simple-answers example-tree example-all-functions example-synchronous
|
PROGRAMS=example-simple-answers example-tree example-all-functions example-synchronous
|
||||||
|
|
||||||
|
.SUFFIXES: .c .o .a .lo .h
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
all: libgetdns example-simple-answers example-tree example-all-functions example-synchronous
|
all: libgetdns example-simple-answers example-tree example-all-functions example-synchronous
|
||||||
|
|
||||||
getdns_core_only.o: getdns_core_only.c
|
libgetdns: getdns_core_only.o getdns_sync.o getdns_context.o
|
||||||
$(CC) -c -Wall -fPIC $(CFLAGS) $^
|
|
||||||
|
|
||||||
libgetdns: getdns_core_only.c
|
|
||||||
$(CC) $(CFLAGS) -shared -o libgetdns.so $^
|
$(CC) $(CFLAGS) -shared -o libgetdns.so $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in New Issue