~ubuntu-branches/ubuntu/wily/gluegen2/wily

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Sylvestre Ledru
  • Date: 2010-12-04 16:22:37 UTC
  • Revision ID: james.westby@ubuntu.com-20101204162237-ma60n1ng0nf2eha7
Tags: upstream-2.0-rc1
ImportĀ upstreamĀ versionĀ 2.0-rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
BITS=32
 
2
 
 
3
ifeq ($(BITS),32)
 
4
  CC=gcc32
 
5
  NS=win-x86
 
6
  SCFLAGS=
 
7
else
 
8
  BITS=64
 
9
  CC=gcc64
 
10
  NS=win-x64
 
11
  SCFLAGS=-D_MSC_VER=1400
 
12
endif
 
13
 
 
14
CFLAGS=-m$(BITS) -shared -c -fno-rtti -fPIC $(SCFLAGS) -I/usr/lib/jvm/java-6-sun/include -I../common/platform-libs/jre-include/win32
 
15
LFLAGS=-m$(BITS) -shared -fno-rtti -fPIC
 
16
 
 
17
SRC1=src/native/common/CPU.c
 
18
SRC2=src/native/windows/WindowsDynamicLinkerImpl_JNI.c
 
19
 
 
20
OBJ1=build/obj/$(NS)/CPU.o
 
21
OBJ2=build/obj/$(NS)/WindowsDynamicLinkerImpl_JNI.o
 
22
 
 
23
BIN=build/obj/$(NS)/gluegen-rt.dll
 
24
 
 
25
all: $(BIN)
 
26
 
 
27
$(BIN): $(OBJ1) $(OBJ2)
 
28
        $(CC) $(LFLAGS) $(OBJ1) $(OBJ2) -o $(BIN)
 
29
 
 
30
$(OBJ1): $(SRC1)
 
31
        $(CC) $(CFLAGS) $(SRC1) -o $(OBJ1)
 
32
 
 
33
$(OBJ2): $(SRC2)
 
34
        $(CC) $(CFLAGS) $(SRC2) -o $(OBJ2)
 
35
 
 
36
clean:
 
37
        rm -f $(BIN) $(OBJ1) $(OBJ2)
 
38