Sophie

Sophie

distrib > Fedora > 13 > i386 > media > os > by-pkgid > b8240933842cee58f4e7ce03017867c5 > files > 79

libsx-devel-2.05-18.fc12.i686.rpm

#
#
include ../libsx_defs

# the object files which the program depends on
OBJS       = main.o callbacks.o

all : test hello_world demo demo0

test: test.c
	$(CC) test.c -o test $(LIBS)

hello_world: hello_world.c
	$(CC) hello_world.c -o hello_world $(LIBS)

demo : $(OBJS)
	$(CC) -o demo $(OBJS) $(LIBS)

demo0 : main0.o
	$(CC) -o demo0  main0.o $(LIBS)


# main.o depends on main.c (of course) and main.h and callbacks.h
main.o : main.c main.h callbacks.h

callbacks.o : callbacks.c main.h


#
# A cleanup target.  Type `make clean' to remove all the junk.
#
clean :
	rm -f *.o *~ core test hello_world demo demo0