blob: f2190b6f79736e0cbd74fa81513602ef2a127594 (
plain) (
blame)
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
|
--- examples/Makefile.orig Wed Jul 4 13:23:28 2007
+++ examples/Makefile Wed Jul 4 23:23:43 2007
@@ -38,10 +38,10 @@
# Set correct variables and paths
#---------------------------------
CIMG_VERSION = 1.22
-CC = g++
-X11PATH = /usr/X11R6
-CFLAGS = -Wall -W -ansi -pedantic -ffast-math
-LDFLAGS = -lm -lpthread
+CC = $(CXX)
+#X11PATH = /usr/X11R6
+#CFLAGS = -Wall -W -ansi -pedantic -ffast-math
+#LDFLAGS = -lm -lpthread
#--------------------------------------------------
# Set compilation flags allowing to customize CImg
@@ -77,6 +77,9 @@
# Flags to compile on Solaris
CIMG_SOLARIS_FLAGS = -R$(X11PATH)/lib -lrt -lnsl -lsocket
+# Flags to compile on FreeBSD
+CIMG_FREEBSD_FLAGS = -ansi -ffast-math -I$(X11PATH)/include $(EXTRA_FLAGS) -lX11 -L$(X11PATH)/lib
+
# Set default compilation flags.
# Uncomment lines here, if you want to customize your default configuration
CIMG_DEFAULT_FLAGS = $(CIMG_X11_FLAGS) \
@@ -130,7 +133,7 @@
all: $(CIMG_FILES)
clean:
- rm -f *.exe *~ $(CIMG_FILES)
+ rm -f *.exe *~ $(CIMG_FILES) Makefile.orig
# Linux/Mac OSX targets
linux:
@@ -156,3 +159,9 @@
Msolaris:
make "ARCHFLAGS=-Dcimg_display_type=0 -O3 $(CIMG_ALL_FLAGS)" all
+# FreeBSD targets
+dFreeBSD:
+ make "ARCHFLAGS=$(CIMG_FREEBSD_FLAGS) $(CIMG_DEFAULT_FLAGS)" all
+
+oFreeBSD:
+ make "ARCHFLAGS=$(CIMG_FREEBSD_FLAGS) $(CIMG_ALL_FLAGS)" all
|