This repository has been archived by the owner on Feb 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move testcentury into a new subdirectory tests/ with its own Makefile.
The all target of tests/Makefile now runs testcentury. More tests to be added. Issue #3
- Loading branch information
Rene Ladan
committed
Dec 5, 2017
1 parent
3e5097c
commit 7e5f943
Showing
3 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright 2017 René Ladan | ||
# SPDX-License-Identifier: BSD-2-Clause | ||
|
||
.PHONY: all clean test | ||
|
||
all: test | ||
test: testcentury | ||
./testcentury | ||
|
||
PREFIX?=. | ||
ETCDIR?=etc/dcf77pi | ||
CFLAGS+=-Wall -D_POSIX_C_SOURCE=200809L -DETCDIR=\"$(PREFIX)/$(ETCDIR)\" \ | ||
-g -std=c99 | ||
objbin=testcentury.o | ||
|
||
testcentury.o: ../calendar.h | ||
testcentury: testcentury.o ../calendar.o | ||
$(CC) -fpic $(CFLAGS) -I.. -c testcentury.c -o $@ | ||
$(CC) -o $@ testcentury.o ../calendar.o | ||
|
||
clean: | ||
rm -f $(objbin) testcentury |
File renamed without changes.