Skip to content

Commit 89f5778

Browse files
committed
Adjust syntax for nmake.
Signed-off-by: Ryan McQuen <rpcm@linux.com>
1 parent e244ba5 commit 89f5778

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ TITLE=basque
55
# the section under '!else' is for everything else.
66

77
# \
8-
!ifndef 0 # \
8+
!IFDEF MAKEDIR # \
99
# nmake: \
1010
CP=copy # \
1111
MV=move # \
@@ -16,7 +16,8 @@ SOURCE=source\$(TITLE).c # \
1616
LIBS=-I C:\INCLUDE\ -L C:\INCLUDE\SDL2\ -Xlinker windows\$(TITLE).res -l Shell32 -l C:\INCLUDE\SDL2\SDL2.lib -l C:\INCLUDE\SDL2\SDL2main.lib -l C:\INCLUDE\SDL2\SDL2_image.lib -l C:\INCLUDE\SDL2\SDL2_mixer.lib -l C:\INCLUDE\SDL2\SDL2_ttf.lib -Xlinker /SUBSYSTEM:WINDOWS # \
1717
TARGET=-o $(TITLE).exe && mt.exe -nologo -manifest windows\$(TITLE).manifest -outputresource:$(TITLE).exe # \
1818
COMPILE=rc.exe /nologo windows\$(TITLE).rc && $(CC) $(FLAGS) $(SOURCE) $(LIBS) # \
19-
!else
19+
# \
20+
!ELSE
2021
# make (POSIX sh in recipes; no GNU make conditionals/functions):
2122
CP=cp -f
2223
MV=mv -f
@@ -39,7 +40,7 @@ SDL2_CONFIG=sdl2-config
3940

4041
TARGET=-o $(TITLE)
4142
# \
42-
!endif
43+
!ENDIF
4344

4445
FLAGS=-Wall -Wextra -std=c99
4546

0 commit comments

Comments
 (0)