Gregory Poist | b89055e | 2016-08-15 16:14:55 -0700 | [diff] [blame] | 1 | # |
| 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 | |
| 17 | include $(TOPDIR)/config.mk |
| 18 | |
| 19 | LIB = lib$(ARCH).a |
| 20 | |
| 21 | AOBJS = |
| 22 | |
Gregory Poist | 362e379 | 2016-08-17 10:56:10 -0700 | [diff] [blame] | 23 | COBJS = board.o arclinux.o |
Gregory Poist | b89055e | 2016-08-15 16:14:55 -0700 | [diff] [blame] | 24 | |
| 25 | OBJS = $(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 | |
| 35 | sinclude .depend |
| 36 | |
| 37 | ######################################################################### |