summaryrefslogtreecommitdiff
path: root/userland/windowserver/Makefile
blob: 0adbdaa02d137f2d957e952fc67afb74f2638e01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CC="i686-sb-gcc"
#CFLAGS = -ggdb -ffreestanding -O2 -Wall -Wextra -pedantic -mgeneral-regs-only -Wimplicit-fallthrough
CFLAGS = -ggdb -ffreestanding -Ofast -Wall -Wextra -pedantic -mgeneral-regs-only -Wimplicit-fallthrough
BIN=ws
LIB=-lgcc
INC=-I../libgui/
all: $(BIN)
OBJ=ws.o draw.o

%.o: %.c
	$(CC) $(CFLAGS) $(INC) $(LIB) -o $@ -c $<

clean:
	rm $(OBJ) ws

$(BIN): $(OBJ)
	$(CC) -flto -o $(BIN) $(CFLAGS) $(OBJ) $(LIB)