-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
46 lines (32 loc) · 913 Bytes
/
Makefile
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
39
40
41
42
43
# Makefile for boxcutter
VERSION = 1.6
FILES = boxcutter.cpp \
boxcutter-fs.cpp \
bmp.cpp \
png.cpp \
boxcutter.exe \
boxcutter-fs.exe \
Makefile \
README.txt \
COPYING.LESSER \
LICENSE \
gdi
CC=c:/mingw/bin/g++
WWW = /var/www/dev/rasm/boxcutter/download
CFLAGS=-mwindows -lcomctl32 -lgdi32 -I/usr/include/wine/msvcrt -Lgdi -lgdiplus
all: boxcutter.exe boxcutter-fs.exe
boxcutter.exe: boxcutter.cpp bmp.cpp png.cpp
$(CC) boxcutter.cpp -o boxcutter $(CFLAGS)
boxcutter-fs.exe: boxcutter-fs.cpp
$(CC) boxcutter-fs.cpp -o boxcutter-fs $(CFLAGS)
pkg: $(FILES)
mkdir -p dist
rm -rf dist/boxcutter-$(VERSION)
mkdir -p dist/boxcutter-$(VERSION)
cp -r $(FILES) dist/boxcutter-$(VERSION)
cd dist && zip -r boxcutter-$(VERSION).zip boxcutter-$(VERSION)
upload:
cp -r dist/boxcutter-$(VERSION).zip \
dist/boxcutter-$(VERSION) $(WWW)
clean:
rm -f boxcutter.exe boxcutter-fs.exe