automake / libtool support for programs in the examples/ subdirectory.
Addresses part of Issue #152.
This commit is contained in:
parent
082157bdb0
commit
ad319fac6f
@ -1 +1 @@
|
||||
SUBDIRS = src
|
||||
SUBDIRS = src examples
|
||||
|
@ -46,4 +46,4 @@ exit 1
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_CONST
|
||||
|
||||
AC_OUTPUT([Makefile src/Makefile])
|
||||
AC_OUTPUT([Makefile src/Makefile examples/Makefile])
|
||||
|
@ -1,18 +0,0 @@
|
||||
IPERFDIR = ..
|
||||
|
||||
CC = gcc
|
||||
|
||||
CFLAGS = -I$(IPERFDIR)/src
|
||||
LDFLAGS = -L$(IPERFDIR)/src
|
||||
LIBS = -liperf
|
||||
|
||||
all: mic mis
|
||||
|
||||
mic: mic.c $(IPERFDIR)/src/iperf_api.h $(IPERFDIR)/src/libiperf.a
|
||||
$(CC) $(CFLAGS) mic.c $(LDFLAGS) $(LIBS) -o mic
|
||||
|
||||
mis: mis.c $(IPERFDIR)/src/iperf_api.h $(IPERFDIR)/src/libiperf.a
|
||||
$(CC) $(CFLAGS) mis.c $(LDFLAGS) $(LIBS) -o mis
|
||||
|
||||
clean:
|
||||
-rm -f mic mis *.o *.a a.out core core.* *.core
|
12
examples/Makefile.am
Normal file
12
examples/Makefile.am
Normal file
@ -0,0 +1,12 @@
|
||||
noinst_PROGRAMS = mic mis # Build, but don't install
|
||||
|
||||
mic_SOURCES = mic.c
|
||||
mic_CFLAGS = -g -Wall
|
||||
mic_LDADD = ../src/libiperf.la
|
||||
mic_LDFLAGS = -g
|
||||
|
||||
mis_SOURCES = mis.c
|
||||
mis_CFLAGS = -g -Wall
|
||||
mis_LDADD = ../src/libiperf.la
|
||||
mis_LDFLAGS = -g
|
||||
|
Loading…
Reference in New Issue
Block a user