Skip to content

Makefile: do not compile headers as source files - #122

Open
Fykec wants to merge 1 commit into
xorg62:masterfrom
Fykec:master
Open

Makefile: do not compile headers as source files#122
Fykec wants to merge 1 commit into
xorg62:masterfrom
Fykec:master

Conversation

@Fykec

@Fykec Fykec commented Jul 29, 2026

Copy link
Copy Markdown

Passing ttyclock.h to the compiler makes clang treat it as a separate translation unit, which fails when a single output is requested:

clang: error: cannot specify -o when generating multiple output files

Keep the header as a rebuild dependency while compiling only ttyclock.c.

Passing ttyclock.h to the compiler makes clang treat it as a separate translation unit, which fails when a single output is requested:

clang: error: cannot specify -o when generating multiple output files

Keep the header as a rebuild dependency while compiling only ttyclock.c.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant