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.linux32

33 lines
674 B
Makefile
Raw Normal View History

2010-11-14 04:22:36 +00:00
TSMAPIDIR=/opt/tivoli/tsm/client/api/bin/sample
TSMLIB=-lApiDS
CC=gcc
2013-07-19 04:19:03 +00:00
CFLAGS=-g -W -Wall -Wextra -m32 -O -I$(TSMAPIDIR)
2010-11-14 04:22:36 +00:00
LDFLAGS=
FILES=tsmpipe.c
all: tsmpipe
2013-07-19 03:21:20 +00:00
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)
2010-11-14 04:22:36 +00:00
clean:
2013-07-19 03:21:20 +00:00
rm tsmpipe *.o lib/*.o