forked from pyrite-dev/pmake
things
This commit is contained in:
parent
c89f96ce8a
commit
d951a0bceb
15 changed files with 381 additions and 90 deletions
21
GNUmakefile
21
GNUmakefile
|
|
@ -13,6 +13,11 @@ ifeq ($(TARGET),NetBSD)
|
|||
UNIX = 1
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET),Windows)
|
||||
MINGW = 1
|
||||
WINDOWS = 1
|
||||
endif
|
||||
|
||||
### Stuff
|
||||
ifeq ($(UNIX),1)
|
||||
CC = gcc
|
||||
|
|
@ -23,11 +28,22 @@ ifeq ($(UNIX),1)
|
|||
EXE =
|
||||
endif
|
||||
|
||||
ifeq ($(WINDOWS),1)
|
||||
EXE = .exe
|
||||
endif
|
||||
|
||||
ifeq ($(MINGW),1)
|
||||
CC = gcc
|
||||
CFLAGS = -c
|
||||
LDFLAGS =
|
||||
LIBS =
|
||||
endif
|
||||
|
||||
### Common flags
|
||||
CFLAGS += -Iexternal/duktape -Iexternal/stb
|
||||
|
||||
### Rules
|
||||
OBJS = src/main.o src/js.o
|
||||
OBJS = src/main.o src/js.o src/js_console.o src/js_process.o src/js_fs.o
|
||||
OBJS += external/duktape/duktape.o external/stb/stb_ds.o
|
||||
|
||||
NAME = rev | cut -d/ -f1 | rev | cut -d. -f1
|
||||
|
|
@ -85,5 +101,6 @@ pmake$(EXE): $(OBJS)
|
|||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -f pmake pmake.exe
|
||||
find . -name "*.o" >/dev/null && rm -f $(shell find . -name "*.o")
|
||||
rm -f src/compiler/*.c
|
||||
rm -f src/compiler/*.c src/action/*.c src/js/*.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue