Updated nmake file

This commit is contained in:
Kyler Olsen 2025-11-27 21:49:32 -07:00
parent dc6be59fab
commit 528f5aa3ab
1 changed files with 10 additions and 0 deletions

View File

@ -15,11 +15,15 @@ TEST_TARGET = $(BINDIR)\sls_tests.exe
# === LIST FILES MANUALLY (edit as needed) ===
SOURCES = \
$(SRCDIR)\main.c \
$(SRCDIR)\repl.c \
$(SRCDIR)\file.c \
$(SRCDIR)\lexer.c \
$(SRCDIR)\string.c
OBJECTS = \
$(OBJDIR)\main.obj \
$(OBJDIR)\repl.obj \
$(OBJDIR)\file.obj \
$(OBJDIR)\lexer.obj \
$(OBJDIR)\string.obj
@ -52,6 +56,12 @@ $(TARGET): dirs $(OBJECTS)
$(OBJDIR)\main.obj: $(SRCDIR)\main.c
$(CC) $(CFLAGS) /c $(SRCDIR)\main.c /Fo$(OBJDIR)\main.obj
$(OBJDIR)\repl.obj: $(SRCDIR)\repl.c
$(CC) $(CFLAGS) /c $(SRCDIR)\repl.c /Fo$(OBJDIR)\repl.obj
$(OBJDIR)\file.obj: $(SRCDIR)\file.c
$(CC) $(CFLAGS) /c $(SRCDIR)\file.c /Fo$(OBJDIR)\file.obj
$(OBJDIR)\lexer.obj: $(SRCDIR)\lexer.c
$(CC) $(CFLAGS) /c $(SRCDIR)\lexer.c /Fo$(OBJDIR)\lexer.obj