blob: 03a2fafae4e93afc4b2e205e20b3f88dae267b71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
LIB = libsash.a
CHOPSRC = utils.c
LIBOBJS = intflag.o modestring.o timestring.o isadir.o copyfile.o \
buildname.o expandwildcards.o namesort.o match.o makeargs.o \
makestring.o chunks.o expandenvvar.o
CFLAGS += -I../
all: $(EXEC) $(LIB)
$(LIBOBJS): $(CHOPSRC)
$(CC) $(CFLAGS) -DL_$(basename $*) -o $(basename $*).o -c $^
$(LIB): $(LIB)($(LIBOBJS))
$(RANLIB) $(LIB)
clean:
rm -f $(LIB) $(EXEC) *.o
|