summaryrefslogtreecommitdiff
path: root/examples/minitar/Makefile
blob: 485eb8d481d37406e129b3472ba4f035c7812fad (plain)
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
CFLAGS=				\
	-DNO_BZIP2_CREATE	\
	-DNO_BZIP2_EXTRACT	\
	-DNO_COMPRESS_EXTRACT	\
	-DNO_CPIO_EXTRACT	\
	-DNO_CREATE		\
	-DNO_GZIP_CREATE	\
	-DNO_GZIP_EXTRACT	\

# Omit 'tree.o' if you're not including create support
#OBJS= minitar.o tree.o
OBJS= minitar.o

all: minitar

minitar: $(OBJS)
	cc -o minitar -static $> -larchive -lz -lbz2
	strip minitar
	ls -l minitar

minitar.o: minitar.c

tree.o: tree.c

clean::
	rm -f *.o
	rm -f minitar
	rm -f *~