File: makefile.config.gcc.in

package info (click to toggle)
ocamlsdl 0.9.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,608 kB
  • sloc: ansic: 3,311; sh: 3,103; ml: 2,111; makefile: 180; awk: 13
file content (46 lines) | stat: -rw-r--r-- 1,175 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- makefile -*-

PREFIX =        @prefix@
OCAMLLIBDIR =   @OCAMLLIB@
OCAMLSDLDIR =   @OCAMLSDLDIR@
BINDIR =        $(PREFIX)/bin
LABLGLDIR =     @LABLGLDIR@

INSTALL = 	@INSTALL@
INSTALL_DATA = 	@INSTALL_DATA@

PARTS = 	@PARTS@

CC =            @CC@
CPPFLAGS =	@CPPFLAGS@
CFLAGS =	@CFLAGS@ 
RANLIB =        @RANLIB@
OBJEXT =        @OBJEXT@
A =		a
SYSLIB =        -l$(1)

OCAMLC = 	@OCAMLC@
OCAMLOPT =	@OCAMLOPT@
OCAMLDEP =	@OCAMLDEP@
OCAMLMKLIB =    @OCAMLMKLIB@
OCAMLDOC = 	@OCAMLDOC@
OCAMLFIND =	@OCAMLFIND@

SDL_LIBS = @SDL_LIBS@
SYSLIB   = @SDL_LIBS@ -l$(1)

ifndef OCAMLMKLIB
# 1 -> name
# 2 -> clib name
# 3 -> object files
# 4 -> C libs & ld flags
MKCMA  = $(OCAMLC) -a -o $(1).cma -cclib -l$(2) -custom $(3) $(addprefix -cclib ,$(filter -l%,$(4))) $(addprefix -ccopt ,$(filter-out -l%,$(4)))
MKCMXA = $(OCAMLOPT) -a -o $(1).cmxa -cclib -l$(2) $(3) $(addprefix -cclib ,$(filter -l%,$(4))) $(addprefix -ccopt ,$(filter-out -l%,$(4)))
MKCLIB  = ar cr lib$(2).$(A) $(3) ; $(RANLIB) lib$(2).$(A)

else

MKCMA  = $(OCAMLMKLIB) -v -o $(1) -oc $(2) $(3) $(4)
MKCMXA = $(OCAMLMKLIB) -v -o $(1) -oc $(2) $(3) $(4)
MKCLIB = $(OCAMLMKLIB) -v -o $(1) -oc $(2) $(3) $(4)
endif