mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-16 20:02:35 +03:00
d2470c2ee6
git-svn-id: svn://kolibrios.org@8585 a494cfbc-eb01-0410-851d-a64ba20cac60
27 lines
589 B
Plaintext
27 lines
589 B
Plaintext
CC = kos32-gcc
|
|
AR = kos32-ar
|
|
|
|
SDK_DIR:= /home/programist/KOS_SVN/contrib/sdk
|
|
|
|
INCLUDES= -Ilib -I$(SDK_DIR)/sources/newlib/libc/include
|
|
|
|
CFLAGS = -O2 -std=c99 -Wall -W #-D_FILE_OFFSET_BITS=64
|
|
ARFLAGS = -rcs
|
|
|
|
SOURCES = lib/decode.c lib/identify.c lib/quirc.c lib/version_db.c
|
|
HEADERS = lib/quirc.h lib/quirc_internal.h
|
|
OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
|
|
|
|
.PHONY: all clean
|
|
|
|
all: libquirc.a
|
|
|
|
libquirc.a: $(OBJECTS)
|
|
$(AR) $(ARFLAGS) $@ $(OBJECTS)
|
|
|
|
%.o : %.c $(HEADERS) Makefile
|
|
$(CC) -c $(INCLUDES) $(CFLAGS) -o $@ $<
|
|
|
|
clean:
|
|
rm -f *.o lib/*.o libquirc.a
|