source: trunk/Makefile.common @ 134

Last change on this file since 134 was 134, checked in by titer, 16 years ago

Started to switch to a Makefile-based build system (still very incomplete,
so the Jamfile are still there).
Set a few svn:ignore properties.

File size: 858 bytes
Line 
1VERSION_MAJOR  = 0
2VERSION_MINOR  = 5
3VERSION_STRING = 0.6-svn
4
5RM      = rm -Rf
6CFLAGS += -g -Wall -W -O3 -funroll-loops
7CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
8CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR)
9CFLAGS += -DVERSION_MINOR=$(VERSION_MINOR)
10CFLAGS += -DVERSION_STRING=\"$(VERSION_STRING)\"
11CFLAGS += -DSYS_$(shell echo $(SYSTEM) | dd conv=ucase 2>/dev/null)
12
13ifeq ($(SYSTEM),BeOS)
14ifeq ($(BEOS_NETSERVER),yes)
15CFLAGS  += -DBEOS_NETSERVER
16LDFLAGS += -lnet
17else
18LDFLAGS += -lbind -lsocket
19endif
20endif
21ifeq ($(SYSTEM),Darwin)
22CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386
23endif
24
25ifeq ($(MATH),yes)
26LDFLAGS += -lm
27endif
28
29ifeq ($(PTHREAD),yes)
30ifeq ($(SYSTEM),FreeBSD)
31LDFLAGS += -pthread
32else
33LDFLAGS += -lpthread
34endif
35endif
36
37ifeq ($(OPENSSL),yes)
38CFLAGS  += -DHAVE_OPENSSL
39LDFLAGS += -lcrypto
40endif
Note: See TracBrowser for help on using the repository browser.