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
2013-07-19 14:44:52 +10:00

30 lines
661 B
Makefile

TSMAPIDIR=/opt/tivoli/tsm/client/api/bin64/sample
TSMLIB=-lApiTSM64
CC=gcc
CFLAGS=-g -W -Wall -Wextra -O -m64 -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:
echo 'hello'
$(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 tsmpipe *.o lib/*.o