From b60f0934f51278c489b95df26470602b4d545cac Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 19 Jul 2013 13:21:20 +1000 Subject: [PATCH] Updated 32bit Makefile --- Makefile.linux32 | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/Makefile.linux32 b/Makefile.linux32 index 32aaed4..909c61b 100644 --- a/Makefile.linux32 +++ b/Makefile.linux32 @@ -1,7 +1,7 @@ TSMAPIDIR=/opt/tivoli/tsm/client/api/bin/sample TSMLIB=-lApiDS CC=gcc -CFLAGS=-g -W -Wall -O -I$(TSMAPIDIR) +CFLAGS=-g -W -Wall -Wextra -O -I$(TSMAPIDIR) LDFLAGS= FILES=tsmpipe.c @@ -9,8 +9,24 @@ FILES=tsmpipe.c all: tsmpipe -tsmpipe: $(FILES:.c=.o) - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(FILES:.c=.o) $(TSMLIB) -lm +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 + rm tsmpipe *.o lib/*.o