|
| 1 | +# Copyright (c) 2021 Syntiant Corp. All rights reserved. |
| 2 | +# Contact at http://www.syntiant.com |
| 3 | +# |
| 4 | +# This software is available to you under a choice of one of two licenses. |
| 5 | +# You may choose to be licensed under the terms of the GNU General Public |
| 6 | +# License (GPL) Version 2, available from the file LICENSE in the main |
| 7 | +# directory of this source tree, or the OpenIB.org BSD license below. Any |
| 8 | +# code involving Linux software will require selection of the GNU General |
| 9 | +# Public License (GPL) Version 2. |
| 10 | +# |
| 11 | +# OPENIB.ORG BSD LICENSE |
| 12 | +# |
| 13 | +# Redistribution and use in source and binary forms, with or without |
| 14 | +# modification, are permitted provided that the following conditions are met: |
| 15 | +# |
| 16 | +# 1. Redistributions of source code must retain the above copyright notice, |
| 17 | +# this list of conditions and the following disclaimer. |
| 18 | +# |
| 19 | +# 2. Redistributions in binary form must reproduce the above copyright |
| 20 | +# notice, this list of conditions and the following disclaimer in the |
| 21 | +# documentation and/or other materials provided with the distribution. |
| 22 | +# |
| 23 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 24 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 25 | +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 26 | +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 27 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 28 | +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 29 | +# DEALINGS IN THE SOFTWARE. |
| 30 | + |
| 31 | +CFLAGS= -g3 -O3 -Wall -Werror -Wc++-compat -fpic -I. -D_FILE_OFFSET_BITS=64 |
| 32 | + |
| 33 | + |
| 34 | +ILIB_LIBRARY=synilib |
| 35 | +ILIB_STATIC_LIBRARY=lib$(ILIB_LIBRARY).a |
| 36 | +ILIB_OBJS := syntiant_ndp120_tiny.o |
| 37 | + |
| 38 | +$(ILIB_STATIC_LIBRARY): $(ILIB_OBJS) |
| 39 | + $(AR) rcs $@ $^ |
| 40 | + |
| 41 | +all: $(ILIB_STATIC_LIBRARY) |
| 42 | + |
| 43 | +-include $(OBJS:.o=.d) |
| 44 | + |
| 45 | +%.o: %.c |
| 46 | + $(CC) -MM -MT $*.o $(CFLAGS) $(CPPFLAGS) $*.c > $*.d |
| 47 | + $(CC) -c $(CFLAGS) $(CPPFLAGS) $*.c -o $*.o |
| 48 | + |
| 49 | +clean: |
| 50 | + $(RM) -f $(ILIB_STATIC_LIBRARY) \ |
| 51 | + $(ILIB_OBJS) *.d |
0 commit comments