Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
45 user(s) are online (35 user(s) are browsing Forums)

Members: 0
Guests: 45

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: Porting to AmigaOS4 thread

Subject: Re: Porting to AmigaOS4 thread
by Raziel on 2019/9/26 10:38:18

@all

@all

Makefile question.

I'd like to automate the process of building and linking a static library.
Can this be done in one makefile?

Right now i have this, but ar is never picked up.
CXX            =    g++
CXXFLAGS    =    -Wall -Wextra --gstabs `sdl-config --cflags --static-libs` -std=gnu++11 -ISDK:local/common/include/libxml2
SDL_LIBS        
=    `sdl-config --static-libs
                -
lSDL_image -ltiff -lpng -ljpeg -lwebp 
                
-lSDL

OBJS 
=            lots.o of.o o.o files.o

libmylib
.a: $(OBJS)
        $(
CXX) $(LDFLAGS) -$@ $(OBJS) $(SDL_LIBS) -lm -lz -lpthread
        ar rcsv libmylib
.$(OBJS)

clean:
    
rm -*.o libmylib.a


Thank you
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project