File: Makefile

package info (click to toggle)
brickos 0.9.0-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,700 kB
  • ctags: 1,727
  • sloc: ansic: 9,139; cpp: 860; makefile: 717; asm: 693; sh: 123; perl: 61
file content (58 lines) | stat: -rw-r--r-- 1,560 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
### ==========================================================================
###  $Id: Makefile,v 1.8 2003/03/02 18:00:41 paolom Exp $
###  FILE: util/Makefile - make the hosted utilities
###  brickOS - the independent LEGO Mindstorms OS
### --------------------------------------------------------------------------

# specify environment before including the common stuff
BUILDING_HOST_UTILS = true
include ../Makefile.common

# Define here the executable files to be build
EXECUTABLES    = fontdesign
UTILITY_SCRIPT = merge-map

# Needed for DOS/WIN32 platforms
ifdef EXT
	TARGETS = $(addsuffix $(EXT),$(EXECUTABLES))
else
	TARGETS = $(EXECUTABLES)
endif

SUBDIRS = dll-src firmdl

all:: $(TARGETS)
	@# nothing to do here but do it silently

all clean depend install realclean strip uninstall::
	@for i in $(SUBDIRS) ; do $(MAKE) $(MFLAGS) NODEPS=yes -C $$i $@ || exit 2 ; done

# remove debug symbols
strip::
	strip $(TARGETS)

# build our one local program
fontdesign$(EXT):	fontdesign.c
	$(CC) -o $@ $< $(CFLAGS)

install:: install-stamp

install-stamp: $(TARGETS) $(UTILITY_SCRIPT)
	@if [ ! -d ${pkglibdir} ]; then \
		mkdir -p ${pkglibdir}; \
	fi
	cp -f $(TARGETS) ${pkglibdir}
	cp -f $(UTILITY_SCRIPT) ${pkglibdir}
	@touch $@

tag::
	@# nothing to do here but do it silently

realclean:: clean
	rm -f $(TARGETS)
	@rm -f install-stamp


### --------------------------------------------------------------------------
###                         End of FILE: util/Makefile
### ==========================================================================