Skip to content

Commit

Permalink
Cleanup makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tong committed Dec 1, 2023
1 parent 045a53d commit 0766c53
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
CFLAGS = -O3 -Wall -std=c11 -msse2 -mfpmath=sse -m64 -fPIC -pthread -fno-omit-frame-pointer -D LIBHL_EXPORTS
INCLUDE = -Iout -I/usr/local/include
LFLAGS = -lhl
LFLAGS = -L. -lhl -L/usr/local/lib
SRC := $(shell find src/ -type f -name '*.hx')
HDLL = /usr/local/lib/fmt.hdll /usr/local/lib/uv.hdll
#LIBFLAGS =

all: build

build: wtri
all: wtri

out/main.c: $(SRC) wtri.hxml
haxe wtri.hxml -hl $@
Expand All @@ -18,9 +16,12 @@ wtri: out/main.c
# wtri.hdll: lib/websocket.c
# ${CC} -o $@ lib/websocket.c -shared ${CFLAGS} ${LFLAGS}

.c.o :
${CC} ${CFLAGS} -o $@ -c $<

clean:
rm -rf out/
rm -f wtri wtri.*
rm -f wtri wtri.hl

.PHONY: all build clean
.PHONY: all clean

0 comments on commit 0766c53

Please sign in to comment.