-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
74 lines (56 loc) · 2.32 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#
# File: Makefile for samples
# Author: Robert Roebling
# Created: 1999
# Updated:
# Copyright: (c) 1998 Robert Roebling
#
# This makefile requires a Unix version of wxWindows
# to be installed on your system. This is most often
# done typing "make install" when using the complete
# sources of wxWindows or by installing the two
# RPM packages wxGTK.XXX.rpm and wxGTK-devel.XXX.rpm
# under Linux.
# this makefile may also be used as a template for simple makefiles for your
# own programs, the comments explain which parts of it you may have to modify
# to use it for your own programs
# you may change WX_CONFIG value to use a specific wx-config and to pass it
# some options, for example "--inplace" to use an uninstalled wxWindows
# version
#
# by default, wx-config from the PATH is used
WX_CONFIG := wx-config
# set this to the name of the main executable file
PROGRAM = aorta
WINPROGRAM = Aorta.exe
# if your program has more than one source file, add more .o files to the line
# below
OBJECTS = $(PROGRAM).o image_ext.o imagdds.o DDSOptionsDialog.o Filter.o FloatImage.o
DISTFILES = aorta.cpp "Aorta File.icns" aorta.h Aorta.icns Aorta.ico aorta.rc Aorta-Info.plist Aorta.xcodeproj/project.pbxproj COPYING DDSOptionsDialog.cpp DDSOptionsDialog.h Filter.cpp Filter.h FloatImage.cpp FloatImage.h imagdds.cpp imagdds.h image_ext.cpp image_ext.h Makefile README VERSION
# you shouldn't have to edit anything below this line
CXX = $(shell $(WX_CONFIG) --cxx)
OPTFLAGS=-g -O3
.SUFFIXES: .o .cpp
.cpp.o :
$(CXX) $(OPTFLAGS) -c `$(WX_CONFIG) --cxxflags` -o $@ $<
.c.o:
$(CC) $(OPTFLAGS) -c -o $@ $<
all: $(PROGRAM)
$(PROGRAM): $(OBJECTS)
$(CXX) $(OPTFLAGS) -o $(PROGRAM) $(OBJECTS) `$(WX_CONFIG) --libs std` -lsquish
resources.o: aorta.rc
i686-pc-mingw32-windres -o resources.o aorta.rc
$(WINPROGRAM): $(OBJECTS) resources.o
$(CXX) $(OPTFLAGS) -o $(WINPROGRAM) $(OBJECTS) `$(WX_CONFIG) --libs std` -lsquish resources.o
strip -S $(WINPROGRAM)
clean:
rm -f *.o $(PROGRAM)
dist:
tar -cjf aorta-`cat VERSION`.tar.bz2 --transform='s,^,aorta/,' $(DISTFILES)
aorta.o: aorta.cpp aorta.h DDSOptionsDialog.h image_ext.h imagdds.h
imagdds.o: imagdds.h Filter.o FloatImage.o
image_ext.o: image_ext.cpp image_ext.h
DDSOptionsDialog.o: DDSOptionsDialog.h aorta.h
Filter.o: Filter.cpp Filter.h
FloatImage.o: FloatImage.cpp FloatImage.h
# DO NOT DELETE