Updated 32bit Makefile

This commit is contained in:
Deon George 2013-07-19 13:21:20 +10:00 committed by Deon George
parent 7b403d8ca7
commit b60f0934f5

View File

@ -1,7 +1,7 @@
TSMAPIDIR=/opt/tivoli/tsm/client/api/bin/sample TSMAPIDIR=/opt/tivoli/tsm/client/api/bin/sample
TSMLIB=-lApiDS TSMLIB=-lApiDS
CC=gcc CC=gcc
CFLAGS=-g -W -Wall -O -I$(TSMAPIDIR) CFLAGS=-g -W -Wall -Wextra -O -I$(TSMAPIDIR)
LDFLAGS= LDFLAGS=
FILES=tsmpipe.c FILES=tsmpipe.c
@ -9,8 +9,24 @@ FILES=tsmpipe.c
all: tsmpipe all: tsmpipe
tsmpipe: $(FILES:.c=.o) tsmpipe: tsmpipe.o lib/dsmobjects.o lib/dsmsession.o lib/dsmlist.o lib/dsmsendrecv.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(FILES:.c=.o) $(TSMLIB) -lm $(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: clean:
rm tsmpipe *.o rm tsmpipe *.o lib/*.o