File: Makefile

package info (click to toggle)
zmk 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,132 kB
  • sloc: makefile: 1,749; sh: 313; ansic: 42; awk: 12; cpp: 12
file content (19 lines) | stat: -rw-r--r-- 632 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include z.mk

group1.Sources = main.c
$(eval $(call ZMK.Expand,ObjectGroup,group1))
group2.Sources = main.cpp
$(eval $(call ZMK.Expand,ObjectGroup,group2))
group3.Sources = main.m
$(eval $(call ZMK.Expand,ObjectGroup,group3))
# Alternative C++ extensions
group4.Sources = main.cxx
$(eval $(call ZMK.Expand,ObjectGroup,group4))
group5.Sources = main.cc
$(eval $(call ZMK.Expand,ObjectGroup,group5))
# Source code can be in arbitrary tree structure.
group6.Sources = src/main.c
$(eval $(call ZMK.Expand,ObjectGroup,group6))

.PHONY: build
build: group1-main.o group2-main.o group3-main.o group4-main.o group5-main.o src/group6-main.o