File: Makefile

package info (click to toggle)
simtools 0~git20171013%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,544 kB
  • sloc: ansic: 26,585; makefile: 589; perl: 57; sh: 43
file content (21 lines) | stat: -rw-r--r-- 646 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# all of these can be over-ridden on the "make" command line if they don't suit your environment.

CFLAGS := -O2 -Wall -Wshadow -Wextra -pedantic -Woverflow -Wstrict-overflow $(CFLAGS)
BIN=$(DESTDIR)/usr/bin
INSTALL=install
CC=gcc

SUBDIRS=config11 converters crossassemblers extracters

.PHONY: all clean install uninstall

# Omitted: putr: has no sources.
all:
	for subdir in $(SUBDIRS); do \
		$(MAKE) -C $$subdir CFLAGS="$(CFLAGS)" BIN="$(BIN)" INSTALL="$(INSTALL)" CC="$(CC)"; \
	done

clean install uninstall:
	for subdir in $(SUBDIRS); do \
		$(MAKE) -C $$subdir CFLAGS="$(CFLAGS)" BIN="$(BIN)" INSTALL="$(INSTALL)" CC="$(CC)" $@; \
	done