Add makeheaders C source

parent 8cb0d972
......@@ -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
BIN = dukboot
MAKEHEADERS = makeheaders
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
$(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)
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
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.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment