build: Minor build system updates
This commit is contained in:
parent
6ce977f8c2
commit
9fa5b1759a
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -48,7 +48,7 @@ jobs:
|
|||||||
run: rm build/bin/limine-enroll-config
|
run: rm build/bin/limine-enroll-config
|
||||||
|
|
||||||
- name: Build limine-enroll-config-win32
|
- name: Build limine-enroll-config-win32
|
||||||
run: make -C build/bin CC="i686-w64-mingw32-gcc" CFLAGS="-O2 -pipe" limine-enroll-config
|
run: make -C build/bin CC="i686-w64-mingw32-gcc" CFLAGS="-O2 -pipe" CPPFLAGS="-D__USE_MINGW_ANSI_STDIO" limine-enroll-config
|
||||||
|
|
||||||
- name: Strip limine-enroll-config-win32
|
- name: Strip limine-enroll-config-win32
|
||||||
run: i686-w64-mingw32-strip build/bin/limine-enroll-config.exe
|
run: i686-w64-mingw32-strip build/bin/limine-enroll-config.exe
|
||||||
@ -57,7 +57,7 @@ jobs:
|
|||||||
run: rm build/bin/limine-deploy
|
run: rm build/bin/limine-deploy
|
||||||
|
|
||||||
- name: Build limine-deploy-win32
|
- name: Build limine-deploy-win32
|
||||||
run: make -C build/bin CC="i686-w64-mingw32-gcc" CFLAGS="-O2 -pipe" limine-deploy
|
run: make -C build/bin CC="i686-w64-mingw32-gcc" CFLAGS="-O2 -pipe" CPPFLAGS="-D__USE_MINGW_ANSI_STDIO" limine-deploy
|
||||||
|
|
||||||
- name: Strip limine-deploy-win32
|
- name: Strip limine-deploy-win32
|
||||||
run: i686-w64-mingw32-strip build/bin/limine-deploy.exe
|
run: i686-w64-mingw32-strip build/bin/limine-deploy.exe
|
||||||
|
@ -58,7 +58,6 @@ override CPPFLAGS_FOR_TARGET := \
|
|||||||
-I../freestanding-headers \
|
-I../freestanding-headers \
|
||||||
-I'$(call SHESCAPE,$(BUILDDIR))/..' \
|
-I'$(call SHESCAPE,$(BUILDDIR))/..' \
|
||||||
-I. \
|
-I. \
|
||||||
-I.. \
|
|
||||||
$(CPPFLAGS_FOR_TARGET) \
|
$(CPPFLAGS_FOR_TARGET) \
|
||||||
-DCOM_OUTPUT=$(COM_OUTPUT) \
|
-DCOM_OUTPUT=$(COM_OUTPUT) \
|
||||||
-DE9_OUTPUT=$(E9_OUTPUT) \
|
-DE9_OUTPUT=$(E9_OUTPUT) \
|
||||||
|
@ -274,5 +274,9 @@ AC_SUBST([LIMINE_COPYRIGHT])
|
|||||||
|
|
||||||
AC_PREFIX_DEFAULT([/usr/local])
|
AC_PREFIX_DEFAULT([/usr/local])
|
||||||
|
|
||||||
|
if ! test "$SRCDIR" = "$BUILDDIR"; then
|
||||||
|
cp "$SRCDIR/limine.h" "$BUILDDIR/"
|
||||||
|
fi
|
||||||
|
|
||||||
AC_CONFIG_FILES([man/man1/limine-version.1 man/man1/limine-deploy.1 man/man1/limine-enroll-config.1 GNUmakefile config.h])
|
AC_CONFIG_FILES([man/man1/limine-version.1 man/man1/limine-deploy.1 man/man1/limine-enroll-config.1 GNUmakefile config.h])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
@ -39,10 +39,10 @@ clean:
|
|||||||
rm -f limine-enroll-config limine-enroll-config.exe
|
rm -f limine-enroll-config limine-enroll-config.exe
|
||||||
|
|
||||||
limine-deploy: limine-deploy.c limine-hdd.h
|
limine-deploy: limine-deploy.c limine-hdd.h
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -std=c99 -D__USE_MINGW_ANSI_STDIO limine-deploy.c $(LIBS) -o $@
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -std=c99 limine-deploy.c $(LIBS) -o $@
|
||||||
|
|
||||||
limine-version: limine-version.c
|
limine-version: limine-version.c
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -std=c99 -D__USE_MINGW_ANSI_STDIO limine-version.c $(LIBS) -o $@
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -std=c99 limine-version.c $(LIBS) -o $@
|
||||||
|
|
||||||
limine-enroll-config: limine-enroll-config.c
|
limine-enroll-config: limine-enroll-config.c
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -std=c99 -D__USE_MINGW_ANSI_STDIO limine-enroll-config.c $(LIBS) -o $@
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -std=c99 limine-enroll-config.c $(LIBS) -o $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user