blob: 77c685d94f6f38e98782c4cf45108d1c2d8aebed [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#*******************************************************************************
2# include ZTE application makefile
3#*******************************************************************************
4include $(COMMON_MK)
5
6##############USER COMIZE BEGIN################
7EXEC1 = qrencode
8EXEC2 = png2bmp
9OBJS1 = bitstream.o mask.o mmask.o mqrspec.o qrenc.o qrencode.o \
10 qrinput.o qrspec.o rscode.o split.o
11OBJS2 = common.o png2bmp.o
12
13
xf.li6c8fc1e2023-08-12 00:11:09 -070014LDLIBS += -lpng -L$(zte_lib_path)/libpng/install/lib
15LDLIBS += -L$(zte_lib_path)/zlib/install/lib -lz -lm
lh9ed821d2023-04-07 01:36:19 -070016CFLAGS += -I./
xf.li6c8fc1e2023-08-12 00:11:09 -070017CFLAGS += -I$(zte_lib_path)/libpng/install/include
18CFLAGS += -I$(zte_lib_path)/zlib/install/include
lh9ed821d2023-04-07 01:36:19 -070019
20
21
22##############USER COMIZE END##################
23
24#*******************************************************************************
25# targets
26#*******************************************************************************
27all: $(EXEC1) $(EXEC2)
28
29$(EXEC1): $(OBJS1)
30 $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) -Wl,--end-group
31 @cp $@ $@.elf
32
33$(EXEC2): $(OBJS2)
34 $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) -Wl,--end-group
35 @cp $@ $@.elf
36
37romfs:
38 $(ROMFSINST) $(EXEC1) /sbin/$(EXEC1)
39 $(ROMFSINST) $(EXEC2) /sbin/$(EXEC2)
40
41clean:
42 -rm -f $(EXEC1) *.elf *.gdb *.o
43 -rm -f $(EXEC2) *.elf *.gdb *.o
44