Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Dukboot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
dukboot
Dukboot
Commits
5643d4be
Unverified
Commit
5643d4be
authored
May 20, 2017
by
Will Hilton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add makeheaders C source
parent
8cb0d972
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3420 additions
and
4 deletions
+3420
-4
Makefile
Makefile
+10
-4
makeheaders-LICENSE
makeheaders-LICENSE
+33
-0
makeheaders.c
makeheaders.c
+3377
-0
No files found.
Makefile
View file @
5643d4be
...
...
@@ -3,20 +3,26 @@ CFLAGS = -fopenmp -I./lib/duktape -Os -pedantic -std=c99 -Wall -fstrict-aliasing
ifeq
($(OS),Windows_NT)
BIN
=
dukboot.exe
MAKEHEADERS
=
makeheaders.exe
else
BIN
=
dukboot
MAKEHEADERS
=
makeheaders
endif
SRC
=
$(
wildcard
src/
*
.c
)
HEADERS
=
$(SRC:.c=.h)
OBJS
=
$(SRC:.c=.o)
DEPS
=
$(
wildcard
lib/duktape/
*
.o
)
DEPS
=
$(
wildcard
lib/duktape/
*
.c
)
DEPOBJS
=
$(DEPS:.c=.o)
main
:
$(HEADERS) $(OBJS) $(DEPS)
$(CC)
$(CFLAGS)
-o
$(BIN)
$(OBJS)
$(DEPS)
$(LDFLAGS)
-lm
main
:
$(MAKEHEADERS) $(HEADERS) $(DEPOBJS) $(OBJS)
$(CC)
$(CFLAGS)
-o
$(BIN)
$(OBJS)
$(DEPOBJS)
$(LDFLAGS)
-lm
$(MAKEHEADERS)
:
makeheaders.c
gcc makeheaders.c
-o
makeheaders
%.h
:
$(SRC)
makeheaders src/
*
.c
./
makeheaders src/
*
.c
%.o
:
%.c
$(CC)
$<
-c
-o
$@
$(CFLAGS)
...
...
makeheaders-LICENSE
0 → 100644
View file @
5643d4be
This program is free software; you can redistribute it and/or
modify it under the terms of the Simplified BSD License (also
known as the "2-Clause License" or "FreeBSD License".)
Copyright 1993 D. Richard Hipp. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
This software is provided "as is" and any express or implied warranties,
including, but not limited to, the implied warranties of merchantability
and fitness for a particular purpose are disclaimed. In no event shall
the author or contributors be liable for any direct, indirect, incidental,
special, exemplary, or consequential damages (including, but not limited
to, procurement of substitute goods or services; loss of use, data or
profits; or business interruption) however caused and on any theory of
liability, whether in contract, strict liability, or tort (including
negligence or otherwise) arising in any way out of the use of this
software, even if advised of the possibility of such damage.
This program is distributed in the hope that it will be useful,
but without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
appropriate header files.
makeheaders.c
0 → 100644
View file @
5643d4be
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment