[go: up one dir, main page]

File: Makefile

package info (click to toggle)
uml-utilities 20070815-1.3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 740 kB
  • sloc: ansic: 3,390; perl: 1,277; makefile: 253; sh: 175; exp: 129
file content (26 lines) | stat: -rw-r--r-- 566 bytes parent folder | download | duplicates (8)
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
BIN = uml_moo uml_mkcow

uml_moo_OBJS = uml_moo.o cow.o
uml_mkcow_OBJS = uml_mkcow.o cow.o

CFLAGS ?= -g -Wall
override CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_GNU_SOURCE

BIN_DIR ?= /usr/bin

all : $(BIN)

uml_moo : $(uml_moo_OBJS)
	$(CC) $(CFLAGS) -o $@ $($@_OBJS)

uml_mkcow : $(uml_mkcow_OBJS)
	$(CC) $(CFLAGS) -o $@ $($@_OBJS)

$(uml_moo_OBJS) $(uml_mkcow_OBJS) : cow.h cow_sys.h

clean : 
	rm -f $(foreach bin,$(BIN),$($(bin)_OBJS)) $(BIN) $(OBJS) *~

install : $(BIN)
	install -d $(DESTDIR)$(BIN_DIR)
	install -s $(BIN) $(DESTDIR)$(BIN_DIR)