blob: a78c42a20359e330fd37069112b76af7d7f443e7 [file] [log] [blame]
#*******************************************************************************
# include ZTE application makefile
#*******************************************************************************
include $(COMMON_MK)
##############USER COMIZE BEGIN################
EXEC1 = qrencode
EXEC2 = png2bmp
OBJS1 = bitstream.o mask.o mmask.o mqrspec.o qrenc.o qrencode.o \
qrinput.o qrspec.o rscode.o split.o
OBJS2 = common.o png2bmp.o
LDLIBS += -lpng -L$(zte_lib_path)/libpng
LDLIBS += -L$(zte_lib_path)/zlib/build -lz -lm
CFLAGS += -I./
CFLAGS += -I$(zte_lib_path)/libpng
CFLAGS += -I$(zte_lib_path)/zlib/zlib-1.2.11
##############USER COMIZE END##################
#*******************************************************************************
# targets
#*******************************************************************************
all: $(EXEC1) $(EXEC2)
$(EXEC1): $(OBJS1)
$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) -Wl,--end-group
@cp $@ $@.elf
$(EXEC2): $(OBJS2)
$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) -Wl,--end-group
@cp $@ $@.elf
romfs:
$(ROMFSINST) $(EXEC1) /sbin/$(EXEC1)
$(ROMFSINST) $(EXEC2) /sbin/$(EXEC2)
clean:
-rm -f $(EXEC1) *.elf *.gdb *.o
-rm -f $(EXEC2) *.elf *.gdb *.o