Fix libiberty Makefile

git-svn-id: svn://kolibrios.org@8352 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
maxcodehack 2020-12-09 07:58:45 +00:00
parent e10f5ff7d9
commit 1703b37acc

View File

@ -1,3 +1,6 @@
CC = kos32-gcc
LD = kos32-ld
SDK_DIR = ../../../sdk
CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -O2 CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -O2
CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields
@ -34,11 +37,11 @@ OBJS = $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS)))
all: libiberty.a all: libiberty.a
libiberty.a : $(OBJS) MAkefile libiberty.a : $(OBJS) Makefile
$(AR) crs libiberty.a $(OBJS) $(AR) crs libiberty.a $(OBJS)
mv -f libiberty.a $(SDK_DIR)/lib mv -f libiberty.a $(SDK_DIR)/lib
%.o : %.c Makefile %.o : %.c Makefile
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<