This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
tsmpipe/Makefile.linux64

33 lines
792 B
Makefile
Raw Permalink Normal View History

2010-11-14 04:22:36 +00:00
TSMAPIDIR=/opt/tivoli/tsm/client/api/bin64/sample
# ** For Digest Calculations, we need to link to openssl libraries, and enable USE_DIGEST in tsmpipe.h **
#TSMLIB=-lApiTSM64
TSMLIB=-lApiTSM64 -lssl -lcrypto
2010-11-14 04:22:36 +00:00
CC=gcc
2013-07-19 04:44:52 +00:00
CFLAGS=-g -W -Wall -Wextra -O -m64 -I$(TSMAPIDIR)
2010-11-14 04:22:36 +00:00
LDFLAGS=
2013-07-18 13:59:14 +00:00
all: tsmpipe
2010-11-14 04:22:36 +00:00
2013-07-18 13:59:14 +00:00
tsmpipe: tsmpipe.o lib/dsmobjects.o lib/dsmsession.o lib/dsmlist.o lib/dsmsendrecv.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ $(TSMLIB) -lm
2010-11-14 04:22:36 +00:00
2013-07-18 13:59:14 +00:00
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)
2010-11-14 04:22:36 +00:00
2013-07-18 13:59:14 +00:00
lib/dsmobjects:
$(CC) $(CFLAGS) -c -o lib/$@.o lib/$@.c $(TSMLIB)
2010-11-14 04:22:36 +00:00
clean:
rm -f tsmpipe *.o lib/*.o