lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #******************************************************************************* |
| 2 | # include ZTE application makefile |
| 3 | #******************************************************************************* |
| 4 | include $(COMMON_MK) |
| 5 | |
| 6 | ##############USER COMIZE BEGIN################ |
| 7 | EXEC1 = qrencode |
| 8 | EXEC2 = png2bmp |
| 9 | OBJS1 = bitstream.o mask.o mmask.o mqrspec.o qrenc.o qrencode.o \ |
| 10 | qrinput.o qrspec.o rscode.o split.o |
| 11 | OBJS2 = common.o png2bmp.o |
| 12 | |
| 13 | |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 14 | LDLIBS += -lpng -L$(zte_lib_path)/libpng/install/lib |
| 15 | LDLIBS += -L$(zte_lib_path)/zlib/install/lib -lz -lm |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 16 | CFLAGS += -I./ |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 17 | CFLAGS += -I$(zte_lib_path)/libpng/install/include |
| 18 | CFLAGS += -I$(zte_lib_path)/zlib/install/include |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 19 | |
| 20 | |
| 21 | |
| 22 | ##############USER COMIZE END################## |
| 23 | |
| 24 | #******************************************************************************* |
| 25 | # targets |
| 26 | #******************************************************************************* |
| 27 | all: $(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 | |
| 37 | romfs: |
| 38 | $(ROMFSINST) $(EXEC1) /sbin/$(EXEC1) |
| 39 | $(ROMFSINST) $(EXEC2) /sbin/$(EXEC2) |
| 40 | |
| 41 | clean: |
| 42 | -rm -f $(EXEC1) *.elf *.gdb *.o |
| 43 | -rm -f $(EXEC2) *.elf *.gdb *.o |
| 44 | |