2007-05-06 16:03:28 +00:00
|
|
|
## Makefile for common.a
|
|
|
|
CC = gcc
|
|
|
|
|
2007-06-14 16:28:05 +00:00
|
|
|
|
|
|
|
include ../libs.linux
|
|
|
|
|
2009-04-07 07:24:33 +00:00
|
|
|
all: common.a pcbcommon.a
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2007-11-04 22:14:47 +00:00
|
|
|
deps:
|
|
|
|
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
|
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
include makefile.include
|
2007-11-04 22:14:47 +00:00
|
|
|
-include *.d
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2009-02-17 09:03:45 +00:00
|
|
|
# specfic Compiler flags and options
|
2009-02-20 14:31:16 +00:00
|
|
|
CPPFLAGS += $(EXTRACPPFLAGS) -I./ -I../include
|
2007-05-06 16:03:28 +00:00
|
|
|
EDACPPFLAGS = $(CPPFLAGS)
|
|
|
|
|
2009-04-07 07:24:33 +00:00
|
|
|
common.a: $(COMMON_OBJECTS) makefile.gtk makefile.include
|
|
|
|
rm -f $@
|
|
|
|
ar -rv $@ $(COMMON_OBJECTS)
|
|
|
|
ranlib $@
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2009-04-08 18:20:27 +00:00
|
|
|
pcbcommon.a: $(PCB_COMMON_OBJECTS) makefile.gtk makefile.include
|
2007-05-06 16:03:28 +00:00
|
|
|
rm -f $@
|
2009-04-08 18:20:27 +00:00
|
|
|
ar -rv $@ $(PCB_COMMON_OBJECTS)
|
2007-05-06 16:03:28 +00:00
|
|
|
ranlib $@
|
|
|
|
|
2009-04-07 07:24:33 +00:00
|
|
|
install:common.a pcb_common.a
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
clean:
|
2007-11-04 22:14:47 +00:00
|
|
|
rm -f *.o *~ core *.bak *.obj *.d
|
2007-05-06 16:03:28 +00:00
|
|
|
rm -f common.a
|
|
|
|
|
|
|
|
|