blob: 03d67ff6dca27ec58732bdb8774bfd4d834bee68 [file] [log] [blame]
Gregory Poistb89055e2016-08-15 16:14:55 -07001#
2# Copyright Codito Technologies (www.codito.com)
3#
4# lib_arc/Makefile
5#
6# Copyright (C)
7#
8# This program is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License version 2 as
10# published by the Free Software Foundation.
11#
12# Authors : Sandeep Patil (sandeep.patil@codito.com)
13# Pradeep Sawlani (pradeep.sawlani@codito.com)
14#
15
16
17include $(TOPDIR)/config.mk
18
19LIB = lib$(ARCH).a
20
21AOBJS =
22
Gregory Poist362e3792016-08-17 10:56:10 -070023COBJS = board.o arclinux.o
Gregory Poistb89055e2016-08-15 16:14:55 -070024
25OBJS = $(AOBJS) $(COBJS)
26
27$(LIB): .depend $(OBJS)
28 $(AR) crv $@ $(OBJS)
29
30#########################################################################
31
32.depend: Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c)
33 $(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@
34
35sinclude .depend
36
37#########################################################################