/[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 884 - (hide annotations)
Wed Sep 26 00:13:05 2012 UTC (7 years, 5 months ago) by mmu_man
File size: 642 byte(s)
define RANLIB

1 mmu_man 869
2     #HOSTOS := $(shell uname -s)
3     #PLATFORM ?= $(HOSTOS)
4    
5 mmu_man 875 ifeq ($(RELEASE),)
6     DEBUG = 1
7     CPPFLAGS += -D_DEBUG
8     else
9     CPPFLAGS += -DNDEBUG
10     endif
11    
12 mmu_man 869 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 mmu_man 884 RANLIB := $(CROSS_COMPILE)ranlib
20 mmu_man 869 WINDRES := $(CROSS_COMPILE)windres
21 mmu_man 875 CPPFLAGS += -DWIN32
22 mmu_man 869
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 mmu_man 883 ifneq ($(PLATFORM),win32)
34     COMMON_EXTRA_LDFLAGS += -lcurses
35     CPPFLAGS += -D__cdecl=
36     endif
37 mmu_man 869

  ViewVC Help
Powered by ViewVC 1.1.26