File: Makefile.upstream

package info (click to toggle)
inform6-compiler 6.33-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 1,672 kB
  • ctags: 2,537
  • sloc: ansic: 28,395; makefile: 60; sh: 48
file content (40 lines) | stat: -rw-r--r-- 970 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#! /usr/bin/make -f
#
# debian/Makefile
# Part of Debian ‘inform6-compiler’ package.
#
# Copyright © 2015–2016 Ben Finney <bignose@debian.org>
#
# This is free software; you may copy, modify, and/or distribute this
# work under the terms of the GNU General Public License as published
# by the Free Software Foundation; version 3 of that License or later.
# No warranty expressed or implied.
# See the file ‘/usr/share/common-licenses/GPL-3’ for details.

header_files = header.h
module_sources = $(sort $(wildcard *.c))
modules = $(patsubst %.c,%.o,${module_sources})
GENERATED_FILES += ${modules}

program = inform6
GENERATED_FILES += ${program}

.PHONY: all
all: ${program}

${program}: ${modules}
	$(CC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o "$@" $^

%.o: %.c
	$(CC) ${CFLAGS} ${CPPFLAGS} -c -o "$@" "$<"

.PHONY: clean
clean:
	$(RM) ${GENERATED_FILES}


# Local variables:
# mode: makefile
# coding: utf-8
# End:
# vim: filetype=make fileencoding=utf-8 :