Initial support for modules, partially implements #1

This commit is contained in:
2018-07-18 22:01:04 +02:00
parent 1929b3619a
commit ee5504ea3a
5 changed files with 124 additions and 2 deletions

View File

@@ -44,10 +44,10 @@ ASTYLE_FLAGS =\
--lineend=linux
all: psharp
all: psharp dummy.lib
clean:
rm -f psharp $(ENGINE_OBJS)
rm -f psharp $(ENGINE_OBJS) *.lib
style:
astyle $(ASTYLE_FLAGS) --recursive ./*.c,*.h
@@ -57,3 +57,6 @@ psharp: $(ENGINE_OBJS)
%.o: %.c
$(CC) -c $(INCLUDES) $(CFLAGS) -o $@ -c $<
dummy.lib: ext/dummy/dummy.c
$(CC) $(CFLAGS) $(LDFLAGS) -shared -fPIC -o dummy.lib ext/dummy/dummy.c