File: Makefile.nmake

package info (click to toggle)
liblouis 2.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,764 kB
  • sloc: ansic: 12,667; sh: 8,825; makefile: 855; perl: 91; python: 18
file content (40 lines) | stat: -rwxr-xr-x 1,309 bytes parent folder | download | duplicates (3)
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
# Make liblouis.dll and liblouis.lib

# Do not edit this file. Make changes in configure.mk

!include configure.mk

SRCDIR = ..\liblouis
CC = cl.exe
CFLAGS =  /nologo /O2 /W1 /c
CFLAGS = $(CFLAGS) /Iinclude
HEADERS = $(SRCDIR)\louis.h include\liblouis.h include\config.h
DLLFLAGS = /dll /nologo /DEF:liblouis.def /OUT:liblouis-2.dll
OBJ = compileTranslationTable.obj lou_translateString.obj \
    lou_backTranslateString.obj wrappers.obj
!if "$(UCS)" == "2"
CFLAGS = $(CFLAGS) /DWIDECHAR_TYPE="unsigned short int"
CFLAGS = $(CFLAGS) /DUNICODEBITS=16
!else
CFLAGS = $(CFLAGS) /DWIDECHAR_TYPE="unsigned int"
CFLAGS = $(CFLAGS) /DUNICODEBITS=32
!endif

all: liblouis-2.lib liblouis.def
    link  $(DLLFLAGS) $(OBJ)  
liblouis-2.lib: $(OBJ)
    lib /nologo  $(OBJ) /out:liblouis-2.lib

compileTranslationTable.obj: $(SRCDIR)\compileTranslationTable.c \
    $(HEADERS)
    $(CC) $(CFLAGS) $(SRCDIR)\compileTranslationTable.c

lou_translateString.obj: $(SRCDIR)\lou_translateString.c  $(HEADERS)
    $(CC) $(CFLAGS) $(SRCDIR)\lou_translateString.c

lou_backTranslateString.obj: $(SRCDIR)\lou_backTranslateString.c \
    $(HEADERS)
    $(CC) $(CFLAGS) $(SRCDIR)\lou_backTranslateString.c

wrappers.obj: $(SRCDIR)\wrappers.c $(HEADERS)
    $(CC) $(CFLAGS) $(SRCDIR)\wrappers.c