File: Makefile

package info (click to toggle)
brickos 0.9.0.dfsg-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,076 kB
  • sloc: ansic: 9,139; cpp: 860; asm: 693; makefile: 654; sh: 134; perl: 61
file content (58 lines) | stat: -rw-r--r-- 1,587 bytes parent folder | download | duplicates (2)
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) $(LDFLAGS)

install:: install-stamp

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

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

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


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