Skip to content

Commit e982bdd

Browse files
committed
windows makefile
1 parent c6e9f49 commit e982bdd

8 files changed

Lines changed: 12 additions & 57 deletions

File tree

makemsvc/jamalgam/makefile

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ else
330330
../openssl-asm/sha512-586-nasm.o
331331
endif
332332

333-
ifeq (1,$(JAVX512))
333+
ifeq (j64avx512,$(j64x))
334334
OBJS_SIMDUTF8= \
335335
utf/utf8_to_utf16le_avx512.o \
336336
utf/utf16le_to_utf8_avx512.o
@@ -360,17 +360,6 @@ endif
360360
%.res : %.rc
361361
$(RC) /L 0x409 /D_USING_V110_SDK71_ -R -FO$@ $<
362362

363-
# ifeq (arm64,$(TARGET_CPU))
364-
# TARGET = jamalgam-arm64.exe
365-
# else ifeq (x64,$(TARGET_CPU))
366-
# ifeq (1,$(JAVX2))
367-
# TARGET = jamalgam-avx2.exe
368-
# else
369-
# TARGET = jamalgam.exe
370-
# endif
371-
# else
372-
# TARGET = jamalgam32.exe
373-
# endif
374363
TARGET = jamalgam.exe
375364

376365
ifeq (1,$(NOSYNCHLIB))

makemsvc/jamalgam/makefile.win

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ OBJS_ASM = \
328328
../openssl-asm/sha512-586-nasm.o
329329
!endif
330330

331-
!if "1"=="$(JAVX512)"
331+
!if "j64avx512"=="$(j64x)"
332332
OBJS_SIMDUTF8= \
333333
utf/utf8_to_utf16le_avx512.o \
334334
utf/utf16le_to_utf8_avx512.o
@@ -358,17 +358,6 @@ LD = lld-link
358358
.rc.res:
359359
$(RC) /L 0x409 /D_USING_V110_SDK71_ -R -FO$@ $<
360360

361-
# !if "arm64"=="$(TARGET_CPU)"
362-
# TARGET = jamalgam-arm64.exe
363-
# !elseif "x64"=="$(TARGET_CPU)"
364-
# !if "1"=="$(JAVX2)"
365-
# TARGET = jamalgam-avx2.exe
366-
# !else
367-
# TARGET = jamalgam.exe
368-
# !endif
369-
# !else
370-
# TARGET = jamalgam32.exe
371-
# !endif
372361
TARGET = jamalgam.exe
373362

374363
!if "1"=="$(NOSYNCHLIB)"

makemsvc/jdll/makefile.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ OBJS_ASM = \
322322
../openssl-asm/sha512-586-nasm.o
323323
!endif
324324

325-
!if "1"=="$(JAVX512)"
325+
!if "j64avx512"=="$(j64x)"
326326
OBJS_SIMDUTF8= \
327327
utf/utf8_to_utf16le_avx512.o \
328328
utf/utf16le_to_utf8_avx512.o

makemsvc/jnative/makefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ endif
4444
%.o : %.c
4545
$(CC) $(CFLAGS) /I "$(JAVA_HOME)/include" /I "$(JAVA_HOME)/include/win32" /Fo$@ /c $<
4646

47-
# ifeq (arm64,$(TARGET_CPU))
48-
# TARGET = jnativearm64.dll
49-
# else ifeq (x64,$(TARGET_CPU))
50-
# TARGET = jnative.dll
51-
# else
52-
# TARGET = jnative32.dll
53-
# endif
5447
TARGET = jnative.dll
5548

5649
$(ODIR)/$(TARGET) : $(OBJS)

makemsvc/jnative/makefile.win

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ LD = lld-link
4444
.c.o:
4545
$(CC) $(CFLAGS) /I "%JAVA_HOME%/include" /I "%JAVA_HOME%/include/win32" /Fo$@ /c $<
4646

47-
# !if "arm64"=="$(TARGET_CPU)"
48-
# TARGET = jnativearm64.dll
49-
# !elseif "x64"=="$(TARGET_CPU)"
50-
# TARGET = jnative.dll
51-
# !else
52-
# TARGET = jnative32.dll
53-
# !endif
5447
TARGET = jnative.dll
5548

5649
$(ODIR)/$(TARGET) : $(OBJS)

makemsvc/makemsvc.txt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,17 @@ and then cd to the makemsvc folder
2626

2727
1. build jconsole.exe
2828
cd jconsole
29-
nmake -f makefile.win CC=clang-cl x64=1 clean
30-
nmake -f makefile.win CC=clang-cl x64=1
29+
nmake -f makefile.win CC=clang-cl j64x=j64 clean
30+
nmake -f makefile.win CC=clang-cl j64x=j64
3131
cd ..
3232

3333
2. build j.dll
34-
same as for jconsole but cd into jdll. add JAVX or JAVX2 and OpenMP flag as needed
34+
same as for jconsole but cd into jdll. add OpenMP flag as needed
3535
cd jdll
36-
nmake -f makefile.win CC=clang-cl x64=1 JAVX2=1 USE_OPENMP=0 USE_PYXES=1 clean
37-
nmake -f makefile.win CC=clang-cl x64=1 JAVX2=1 USE_OPENMP=0 USE_PYXES=1
38-
nmake -f makefile.win CC=clang-cl x64=1 JAVX=1 USE_OPENMP=0 c USE_PYXES=1lean
39-
nmake -f makefile.win CC=clang-cl x64=1 JAVX=1 USE_OPENMP=0 USE_PYXES=1
40-
nmake -f makefile.win CC=clang-cl x64=1 USE_OPENMP=0 USE_PYXES=1c lean
41-
nmake -f makefile.win CC=clang-cl x64=1 USE_OPENMP=0 USE_PYXES=1
36+
nmake -f makefile.win CC=clang-cl j64x=j64avx2 USE_OPENMP=0 USE_PYXES=1 clean
37+
nmake -f makefile.win CC=clang-cl j64x=j64avx2 USE_OPENMP=0 USE_PYXES=1
38+
nmake -f makefile.win CC=clang-cl j64x=j64 USE_OPENMP=0 USE_PYXES=1c lean
39+
nmake -f makefile.win CC=clang-cl j64x=j64 USE_OPENMP=0 USE_PYXES=1
4240
cd ..
4341

4442
3. build tsdll.dll - used in test suite to validate cd

makemsvc/tsdll/makefile.win

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ LD = lld-link
4444
.c.o:
4545
$(CC) $(CFLAGS) /Fo$@ /c $<
4646

47-
# !if "arm64"=="$(TARGET_CPU)"
48-
# TARGET = tsdllarm64.dll
49-
# !elseif "x64"=="$(TARGET_CPU)"
50-
# TARGET = tsdll.dll
51-
# !else
52-
# TARGET = tsdll32.dll
53-
# !endif
5447
TARGET = tsdll.dll
5548

5649
$(ODIR)/$(TARGET) : $(OBJS)

script/buildga.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ copy bin\windows\j64avx2\j.dll j64\javx2.dll
154154
@rem copy bin\windows\j64\jamalgam.exe j64
155155
GOTO L06C
156156
:L06A
157-
copy bin\windows\j32\console.exe j32
157+
copy bin\windows\j32\jconsole.exe j32
158158
copy bin\windows\j32\*.dll j32
159159
@rem copy bin\windows\j32\jamalgam.exe j32
160160
GOTO L06C
161161
:L06B
162-
copy bin\windows\j64arm\console.exe j64
162+
copy bin\windows\j64arm\jconsole.exe j64
163163
copy bin\windows\j64arm\*.dll j64
164164
@rem copy bin\windows\j64arm\jamalgam.exe j64
165165
:L06C

0 commit comments

Comments
 (0)