-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.mingw32
65 lines (45 loc) · 1.71 KB
/
makefile.mingw32
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# @(#)makefile.mingw32 1.0 2010/01/24
# ________ _________________.________
# / _____/ ____ / _____/ __ \ ____/
# / \ ___ / _ \\_____ \\____ /____ \
# \ \_\ ( <_> ) \ / // \
# \______ /\____/_______ / /____//______ /
# \/ \/ \/
# Copyright (c) 2010 by
# Alessandro Fraschetti (gos95@gommagomma.net)
#
# Project...: Traytree - A system-tray directories access utility
# Module....: Makefile for MingW32 compiler
# Author....: Alessandro Fraschetti
# Notes.....:
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
TARGET = Traytree
SRCPATH = src
RESPATH = res
OBJPATH = obj
RELPATH = release
CC = gcc
WINDRES = windres
RM = rm -f
CP = cp
ZIP = pkzip
CFLAGS = -pipe -Wall -g0 -O2 -frtti -fexceptions
LDFLAGS = -pipe -s -mwindows -lcomctl32
BIN = $(TARGET).exe
OBJ = $(OBJPATH)/Traytree.o $(OBJPATH)/About.o
ROBJ = $(OBJPATH)/resource.o
all: $(RELPATH)/$(BIN)
$(CP) $(TARGET).txt $(RELPATH)/$(TARGET).txt
$(CP) $(TARGET).ini $(RELPATH)/$(TARGET).ini
$(CP) license.txt $(RELPATH)/license.txt
.PHONY: clean
clean: $(RM) $(OBJ) $(ROBJ)
$(RELPATH)/$(BIN): $(OBJ) $(ROBJ)
$(CC) -o $(RELPATH)/$(BIN) $(OBJ) $(ROBJ) $(LDFLAGS)
$(OBJPATH)/Traytree.o: $(SRCPATH)/Traytree.cpp $(SRCPATH)/Traytree.h
$(CC) -c $(SRCPATH)/Traytree.cpp -o $(OBJPATH)/Traytree.o $(CFLAGS)
$(OBJPATH)/About.o: $(SRCPATH)/About.cpp $(SRCPATH)/Traytree.h
$(CC) -c $(SRCPATH)/About.cpp -o $(OBJPATH)/About.o $(CFLAGS)
$(OBJPATH)/resource.o: $(SRCPATH)/Traytree.rc $(SRCPATH)/resource.h
@$(WINDRES) -o $(OBJPATH)/resource.o $(SRCPATH)/Traytree.rc