stuff
This commit is contained in:
parent
285b530527
commit
9ca077835b
7 changed files with 54 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
*.o
|
||||
*.exe
|
||||
/taiga
|
||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "external/xemil"]
|
||||
path = external/xemil
|
||||
url = ../xemil
|
||||
16
Makefile
Normal file
16
Makefile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
CC = cc
|
||||
CFLAGS = -I external/xemil/include
|
||||
LDFLAGS =
|
||||
LIBS =
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: taiga
|
||||
|
||||
include objs.mk
|
||||
|
||||
taiga$(E): $(OBJS)
|
||||
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f *.o taiga taiga.exe
|
||||
1
external/xemil
vendored
Submodule
1
external/xemil
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit e5b592e29a3be4b021836dd364f94c8e4137ef4e
|
||||
19
objs.mk
Normal file
19
objs.mk
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
OBJS += external_xemil_src_array.o
|
||||
external_xemil_src_array.o: external/xemil/src/array.c
|
||||
$(CC) $(CFLAGS) -c -o $@ external/xemil/src/array.c
|
||||
OBJS += external_xemil_src_core.o
|
||||
external_xemil_src_core.o: external/xemil/src/core.c
|
||||
$(CC) $(CFLAGS) -c -o $@ external/xemil/src/core.c
|
||||
OBJS += external_xemil_src_file.o
|
||||
external_xemil_src_file.o: external/xemil/src/file.c
|
||||
$(CC) $(CFLAGS) -c -o $@ external/xemil/src/file.c
|
||||
OBJS += external_xemil_src_unicode.o
|
||||
external_xemil_src_unicode.o: external/xemil/src/unicode.c
|
||||
$(CC) $(CFLAGS) -c -o $@ external/xemil/src/unicode.c
|
||||
OBJS += external_xemil_src_util.o
|
||||
external_xemil_src_util.o: external/xemil/src/util.c
|
||||
$(CC) $(CFLAGS) -c -o $@ external/xemil/src/util.c
|
||||
OBJS += src_main.o
|
||||
src_main.o: src/main.c
|
||||
$(CC) $(CFLAGS) -c -o $@ src/main.c
|
||||
8
objs.sh
Executable file
8
objs.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
echo > objs.mk
|
||||
ls external/xemil/src/*.c src/*.c | while read a; do
|
||||
O="`echo "$a" | sed 's/.c$/.o/' | sed 's/\//_/g'`"
|
||||
echo "OBJS += $O" >> objs.mk
|
||||
echo "$O: $a" >> objs.mk
|
||||
echo " \$(CC) \$(CFLAGS) -c -o \$@ $a" >> objs.mk
|
||||
done
|
||||
4
src/main.c
Normal file
4
src/main.c
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char** argv){
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue