File: makefile.config.msvc

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 (32 lines) | stat: -rw-r--r-- 634 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
# -*- makefile -*-

LABLGLDIR =     

PARTS = ttf loader mixer

CPPFLAGS = /MT 
CFLAGS   = /O
RANLIB   =
OBJEXT   = obj
A        = lib
SYSLIB   = $(1).lib

OCAMLC     = ocamlc
OCAMLOPT   = ocamlopt
OCAMLDEP   = ocamldep
CAMLDOC    = ocamldoc
OCAMLMKLIB =
OCAMLDOC   = ocamldoc
OCAMLFIND  =

SDL_LIBS = SDL.lib SDLmain.lib

SYSLIB = $(1).lib

# 1 -> name
# 2 -> clib name
# 3 -> object files
# 4 -> C libs & ld flags
MKCMA  = $(OCAMLC)   -a -o $(1).cma -cclib $(2).lib -custom $(3) $(addprefix -cclib ,$(4))
MKCMXA = $(OCAMLOPT) -a -o $(1).cma -cclib $(2).lib         $(3) $(addprefix -cclib ,$(4))
MKCLIB = lib /out:lib$(2).$(A) $(3)