简体   繁体   中英

Converting/using Makefile in Qt Creator

I'm trying to build minizip from zlib to build inside of Qt as the rest of the project has been created inside of Qt. How can I port the makefile below into Qt.

CC=cc
CFLAGS=-O -I../.. -DHAVE_AES

UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a libaes.a

.c.o:
    $(CC) -c $(CFLAGS) $*.c

all: miniunz

libaes.a:
    cd aes; $(MAKE) $(MFLAGS)

miniunz:  $(UNZ_OBJS) libaes.a
    $(CC) $(CFLAGS) -o $@ $(UNZ_OBJS)

It's really simple: copy all the sources and headers to somewhere in your project tree, then add them to your project in Qt Creator. Finally, add the following line manually to the .pro file:

DEFINES += HAVE_AES

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM