[56d230]: Makefile Maximize Restore History

Download this file

Makefile    31 lines (24 with data), 766 Bytes

 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
# This is a really dumb makefile. Eventually
# it should be autoconf'ed. However, we support
# only host=mingw, so all we require is that CC
# be set appropriately.
CC = gcc
EXE_EXT = .exe
O = o
all: tee$(EXE_EXT) cleanfile$(EXE_EXT)
tee$(EXE_EXT): tee.$(O)
$(CC) -s -static -static-libgcc -o $@ $^
cleanfile$(EXE_EXT): cleanfile.$(O)
$(CC) -s -static -static-libgcc -o $@ $^
.PHONY: srcdist
srcdist:
-rm -rf srcdir/mingw-get-inst
mkdir -p srcdir/mingw-get-inst && \
for f in Makefile RELEASE_NOTES.txt mingw-get-inst.iss \
tee.c cleanfile.c msys.ico ChangeLog ; do \
cp $$f srcdir/mingw-get-inst/ ;\
done && \
(cd srcdir && tar -cJf ../mingw-get-inst-src.tar.xz mingw-get-inst)
.PHONY: clean
clean:
-rm -f tee$(EXE_EXT) cleanfile$(EXE_EXT) *.$(O)