Skip to content

Commit

Permalink
chord(proj): Add makefiles in root folder for Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tomghuang committed Aug 18, 2017
1 parent e5e6d8c commit 1d44db7
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
language: c

script: make

42 changes: 42 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
################################################################################
# This file is part of the argtable3 library.
#
# Copyright (C) 2013-2014 Tom G. Huang
# <[email protected]>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of STEWART HEITMANN nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL STEWART HEITMANN BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
################################################################################

.PHONY: all build_examples build_tests cleanall
all: build_examples build_tests

build_examples:
$(MAKE) -C examples

build_tests:
$(MAKE) -C tests

cleanall:
$(MAKE) -C examples cleanall
$(MAKE) -C tests cleanall
22 changes: 4 additions & 18 deletions Makefile.nmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,8 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
################################################################################

CFLAGS= /Ox /W3 /wd4996 /nologo

LIBFLAGS=/nologo
all: build_examples build_tests

ALL_OBJS = argtable3.obj

OUT_FILE = argtable3.lib

all: static_lib build_examples build_tests

static_lib: $(ALL_OBJS)
lib $(LIBFLAGS) $(ALL_OBJS) /out:$(OUT_FILE)

build_examples:
cd $(MAKEDIR)/examples
$(MAKE) /F Makefile.nmake
Expand All @@ -50,10 +39,7 @@ build_tests:
$(MAKE) /F Makefile.nmake

cleanall:
del $(ALL_OBJS)
del $(OUT_FILE)
cd examples
cd $(MAKEDIR)/examples
$(MAKE) /F Makefile.nmake cleanall
cd $(MAKEDIR)/tests
$(MAKE) /F Makefile.nmake cleanall
cd ..
cd tests
$(MAKE) /F Makefile.nmake cleanall

0 comments on commit 1d44db7

Please sign in to comment.