File: makefile.rules

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

%.cmi : %.mli
	$(OCAMLC) $(MLINC) $<

%.cmo : %.ml
	$(OCAMLC) -c $(MLINC) $(MLFLAGS) $<

%.cmx : %.ml
	$(OCAMLOPT) -c $(MLINC) $(OMLFLAGS) $<

%.$(OBJEXT) : %.c
	$(OCAMLC) -ccopt "$(CPPFLAGS) $(CFLAGS)" $<

STUB_SRCS = $(patsubst %,%_stub.c,$($(1)_MODULES)) $($(1)_C_SRC)
STUB_OBJS = $(patsubst %.c,%.$(OBJEXT),$(call STUB_SRCS,$(1)))

ML_SRCS     = $(patsubst %,%.ml,$($(1)_MODULES))
ML_OBJS     = $(patsubst %.ml,%.cmo,$(call ML_SRCS,$(1)))
ML_OPT_OBJS = $(patsubst %.ml,%.cmx,$(call ML_SRCS,$(1)))