File: makefile

package info (click to toggle)
libsx 2.05-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,372 kB
  • sloc: ansic: 8,540; makefile: 258
file content (38 lines) | stat: -rw-r--r-- 711 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
#
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