Sophie

Sophie

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

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

#
#
include ../libsx_defs

FREQ_OBJS  = freq.o dirlist.o
SIMPLE_FREQ_OBJS = simple_freq.o
OBJS       = main.o libfreq.a
SIMPLE_OBJS = main.o libsimplefreq.a

all : libfreq.a freq libsimplefreq.a simple_freq


libfreq.a : $(FREQ_OBJS)
	rm -f libfreq.a
	ar rc libfreq.a $(FREQ_OBJS)
	$(RANLIB) libfreq.a

libsimplefreq.a : $(SIMPLE_FREQ_OBJS)
	rm -f libsimplefreq.a
	ar rc libsimplefreq.a $(SIMPLE_FREQ_OBJS)
	$(RANLIB) libsimplefreq.a

freq : $(OBJS) 
	$(CC) -o $@ $(OBJS) $(LIBS)

simple_freq : $(SIMPLE_OBJS)
	$(CC) -o $@ $(SIMPLE_OBJS) $(LIBS)

main.o : main.c freq.h

freq.o : freq.c

simple_freq.o : simple_freq.c

dirlist.o : dirlist.c

clean:
	rm -f *.o *~ core freq libfreq.a simple_freq libsimplefreq.a