some makefile changes

Signed-off-by: Arnav Bhatt <arnav@ghativega.in>
This commit is contained in:
Arnav Bhatt
2024-07-26 00:51:45 +05:30
parent c164d8f0a5
commit 9aec3108db
2 changed files with 75 additions and 76 deletions

View File

@@ -4,16 +4,16 @@ OBJCOPY = kos32-objcopy
SDK_DIR = ../../..
LDFLAGS = -nostdlib -static --image-base 0 -T $(SDK_DIR)/sources/newlib/app.lds --subsystem native
CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -D_KOLIBRI -DNO_ZIP -DPERFORMANCE
CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32
LIBS = -lSDL2test -lSDL2 -lgcc -lc.dll -lc -lsound
INCLUDES = -I $(SDK_DIR)/sources/newlib/libc/include -I ../include/
LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib
all: checkkeys loopwave testatomic testaudioinfo testbounds testcustomcursor testdisplayinfo testdraw2 testdrawchessboard testfile \
testfilesystem testgeometry testiconv testime testintersections testkeys testmouse testmultiaudio testoverlay2 \
testplatform testqsort testrelative testrendercopyex testrendertarget testresample testscale testshape testsprite2 \
testspriteminimal teststreaming testver testviewport testwm2 testyuv
all: checkkeys loopwave loopwavequeue testatomic testaudioinfo testbounds testcustomcursor testdisplayinfo testdraw2 testdrawchessboard testfile \
testfilesystem testgeometry testiconv testime testintersections testkeys testmouse testmultiaudio testoverlay2 \
testplatform testqsort testrelative testrendercopyex testrendertarget testresample testscale testshape testsprite2 \
testspriteminimal teststreaming testver testviewport testwm2 testyuv
checkkeys: checkkeys.o
$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS)
@@ -157,10 +157,10 @@ testyuv: testyuv.o testyuv_cvt.o
%.o : %.c Makefile
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
clean:
rm -f *.o
rm -f checkkeys loopwave testatomic testaudioinfo testbounds testcustomcursor testdisplayinfo testdraw2 testdrawchessboard testfile \
rm -f checkkeys loopwave loopwavequeue testatomic testaudioinfo testbounds testcustomcursor testdisplayinfo testdraw2 testdrawchessboard testfile \
testfilesystem testgeometry testiconv testime testintersections testkeys testmouse testmultiaudio testoverlay2 \
testplatform testqsort testrelative testrendercopyex testrendertarget testresample testscale testshape testsprite2 \
testspriteminimal teststreaming testver testviewport testwm2 testyuv