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
|
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
# Compiler flags.
|
2007-06-14 16:28:05 +00:00
|
|
|
CPPFLAGS += -I./ -I../include
|
2007-05-06 16:03:28 +00:00
|
|
|
|
|
|
|
EDACPPFLAGS = $(CPPFLAGS)
|
|
|
|
|
|
|
|
all: common.a
|
|
|
|
|
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
|
|
|
|
2007-05-28 18:09:49 +00:00
|
|
|
CPPFLAGS += $(EXTRACPPFLAGS) -fno-strict-aliasing
|
2007-05-06 16:03:28 +00:00
|
|
|
EDACPPFLAGS = $(CPPFLAGS)
|
|
|
|
|
|
|
|
|
|
|
|
common.a: $(OBJECTS) makefile.gtk makefile.include
|
|
|
|
rm -f $@
|
|
|
|
ar -rv $@ $(OBJECTS)
|
|
|
|
ranlib $@
|
|
|
|
|
2007-05-28 18:09:49 +00:00
|
|
|
install: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
|
|
|
|
|
|
|
|
|