libmongoose: Makefile fixes

This commit is contained in:
Alexey Pavlov
2015-07-26 19:13:22 +03:00
parent 389f75b73a
commit ed5ad20e6d
2 changed files with 16 additions and 8 deletions

View File

@@ -6,6 +6,14 @@ SHARED_LIB=$(LIBNAME)-$(SONAME_MAJOR).dll
STATIC_LIB=$(LIBNAME).a
IMPORT_LIB=$(LIBNAME).dll.a
ifndef CC
CC=gcc
endif
ifndef AR
AR=ar
endif
ifndef PREFIX
PREFIX=/usr/local
endif
@@ -30,12 +38,12 @@ SRCS=mongoose.c
OBJS=mongoose.o
INCLUDE=.
all: $(SHARED_LIB) $(STATIC_LIB)
all: $(STATIC_LIB) $(SHARED_LIB)
$(SHARED_LIB): $(OBJS)
$(CC) $(OBJS) $(LDFLAGS) -o $(SHARED_LIB)
$(STATIC_LIB):
$(STATIC_LIB): $(OBJS)
$(AR) rcs $(STATIC_LIB) $(OBJS)
$(OBJS): $(SRCS)

View File

@@ -1,23 +1,23 @@
# Maintainer: Renato Silva <br.renatosilva@gmail.com>
_realname='libmongoose'
_realname=libmongoose
pkgname=(${MINGW_PACKAGE_PREFIX}-${_realname}-git)
provides=(${MINGW_PACKAGE_PREFIX}-${_realname})
conflicts=(${MINGW_PACKAGE_PREFIX}-${_realname})
pkgver=r1793.41b405d
pkgrel=2
url='https://github.com/cesanta/mongoose'
pkgrel=3
url="https://github.com/cesanta/mongoose"
pkgdesc='Embedded web server for C/C++ (mingw-w64)'
license=('GPL2')
arch=('any')
depends=(${MINGW_PACKAGE_PREFIX}-gcc-libs) #${MINGW_PACKAGE_PREFIX}-openssl
makedepends=(${MINGW_PACKAGE_PREFIX}-gcc)
source=(${_realname}::'git+https://github.com/cesanta/mongoose'
source=(${_realname}::"git+https://github.com/cesanta/mongoose"
mongoose.pc
Makefile)
sha1sums=('SKIP'
'92c82813e7c1b277a0078c0e67addc7e159aec81'
'c4a55e3cc984dba00258d81e2ab09e8e91ff4419')
'94385286bcb7e3639d03ba283dc43111062c4a23')
pkgver() {
cd "${srcdir}/${_realname}"
@@ -31,7 +31,7 @@ prepare() {
build() {
cd "${srcdir}/${_realname}"
make PREFIX=${MINGW_PREFIX} CC=gcc -j1
make PREFIX=${MINGW_PREFIX} CC=gcc AR=ar -j1
}
package() {