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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1131 - (hide annotations)
Sun May 11 09:31:30 2014 UTC (5 years, 9 months ago) by Jylam
File size: 682 byte(s)
Defined POSIX in rules.mk

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

  ViewVC Help
Powered by ViewVC 1.1.26