33 lines
775 B
Makefile
33 lines
775 B
Makefile
TSMAPIDIR=/opt/tivoli/tsm/client/api/bin/sample
|
|
|
|
# ** For Digest Calculations, we need to link to openssl libraries, and enable USE_DIGEST in tsmpipe.h **
|
|
#TSMLIB=-lApiDS
|
|
TSMLIB=-lApiDS -lssl
|
|
|
|
CC=gcc
|
|
CFLAGS=-g -W -Wall -Wextra -O -m32 -I$(TSMAPIDIR)
|
|
LDFLAGS=
|
|
|
|
all: tsmpipe
|
|
|
|
tsmpipe: tsmpipe.o lib/dsmobjects.o lib/dsmsession.o lib/dsmlist.o lib/dsmsendrecv.o
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ $(TSMLIB) -lm
|
|
|
|
tsmpipe.c:
|
|
$(CC) $(CFLAGS) -c -o $(@:.c=.o) $@ $(TSMLIB)
|
|
|
|
lib/dsmlist:
|
|
$(CC) $(CFLAGS) -c -o lib/$@.o lib/$@.c $(TSMLIB)
|
|
|
|
lib/dsmsendrecv:
|
|
$(CC) $(CFLAGS) -c -o lib/$@.o lib/$@.c $(TSMLIB)
|
|
|
|
lib/dsmsession:
|
|
$(CC) $(CFLAGS) -c -o lib/$@.o lib/$@.c $(TSMLIB)
|
|
|
|
lib/dsmobjects:
|
|
$(CC) $(CFLAGS) -c -o lib/$@.o lib/$@.c $(TSMLIB)
|
|
|
|
clean:
|
|
rm -f tsmpipe *.o lib/*.o
|