aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-uws/GNUmakefile
blob: 6b19b705854d5d8171e4d858dde4444b73f8ced3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This is the GNU Make shim for Linux and macOS

DESTDIR ?=
prefix ?= /usr/local

examples: default
	./build examples

clean: default
	./build clean

capi: default
	./build capi

install:
	mkdir -p "$(DESTDIR)$(prefix)/include/uWebSockets"
	cp -r src/* "$(DESTDIR)$(prefix)/include/uWebSockets"

all: default
	./build all

default:
	$(MAKE) -C uSockets
	$(CC) build.c -o build