kolibrios-gitea/programs/media/qr_tool/Makefile_lib
Rustem Gimadutdinov (rgimad) d2470c2ee6 upload new program QR Tool
git-svn-id: svn://kolibrios.org@8585 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-02-07 17:35:37 +00:00

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