mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-05 07:01:53 +02:00
44 lines
879 B
Makefile
44 lines
879 B
Makefile
#
|
|
# Makefile - Expanded component view generator
|
|
#
|
|
# Copyright 2012 by Werner Almesberger
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
|
|
CFLAGS = -Wall -g
|
|
OBJS = genex.o comp.o libs.o pdf.o
|
|
|
|
CC_normal := $(CC)
|
|
DEPEND_normal := $(CPP) $(CFLAGS) -MM -MG
|
|
|
|
CC_quiet = @echo " CC " $@ && $(CC_normal)
|
|
GEN_quiet = @echo " GENERATE " $@ &&
|
|
DEPEND_quiet = @$(DEPEND_normal)
|
|
|
|
ifeq ($(V),1)
|
|
CC = $(CC_normal)
|
|
GEN =
|
|
DEPEND = $(DEPEND_normal)
|
|
else
|
|
CC = $(CC_quiet)
|
|
GEN = $(GEN_quiet)
|
|
DEPEND = $(DEPEND_quiet)
|
|
endif
|
|
|
|
.PHONY: all clean spotless
|
|
|
|
all: genex
|
|
|
|
genex: $(OBJS)
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS)
|
|
|
|
clean:
|
|
rm -f $(OBJS)
|
|
|
|
spotless: clean
|
|
rm -f genex
|