/[projet1]/public/pc/tools/rules.mk
Defence Force logotype

Contents of /public/pc/tools/rules.mk

Parent Directory Parent Directory | Revision Log Revision Log


Revision 884 - (show annotations)
Wed Sep 26 00:13:05 2012 UTC (7 years, 4 months ago) by mmu_man
File size: 642 byte(s)
define RANLIB

1
2 #HOSTOS := $(shell uname -s)
3 #PLATFORM ?= $(HOSTOS)
4
5 ifeq ($(RELEASE),)
6 DEBUG = 1
7 CPPFLAGS += -D_DEBUG
8 else
9 CPPFLAGS += -DNDEBUG
10 endif
11
12 ifeq ($(PLATFORM),win32)
13 EXE = .exe
14 .SUFFIXES: .exe
15 CROSS_COMPILE ?= i586-mingw32msvc-
16 CC := $(CROSS_COMPILE)$(CC)
17 CXX := $(CROSS_COMPILE)$(CXX)
18 AR := $(CROSS_COMPILE)$(AR)
19 RANLIB := $(CROSS_COMPILE)ranlib
20 WINDRES := $(CROSS_COMPILE)windres
21 CPPFLAGS += -DWIN32
22
23 # add default rules for exe files
24 %.exe: %.o
25 $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
26
27 %.exe: %.c
28 $(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
29
30 endif
31
32
33 ifneq ($(PLATFORM),win32)
34 COMMON_EXTRA_LDFLAGS += -lcurses
35 CPPFLAGS += -D__cdecl=
36 endif
37

  ViewVC Help
Powered by ViewVC 1.1.26