mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
157 lines
3.1 KiB
Makefile
157 lines
3.1 KiB
Makefile
OBJS = \
|
|
id.o \
|
|
sh.o \
|
|
ps.o \
|
|
ls.o \
|
|
sleep.o \
|
|
date.o \
|
|
true.o \
|
|
false.o \
|
|
hostname.o \
|
|
cat.o \
|
|
uname.o \
|
|
clear.o \
|
|
tst.o \
|
|
mm.o \
|
|
kill.o \
|
|
fgrep.o \
|
|
tty.o \
|
|
mkdir.o \
|
|
touch.o \
|
|
more.o \
|
|
guitest.o \
|
|
guitest2.o \
|
|
sysctl.o \
|
|
cp.o \
|
|
rm.o
|
|
|
|
APPS = \
|
|
id \
|
|
sh \
|
|
ps \
|
|
ls \
|
|
sleep \
|
|
date \
|
|
true \
|
|
false \
|
|
hostname \
|
|
cat \
|
|
uname \
|
|
clear \
|
|
tst \
|
|
mm \
|
|
kill \
|
|
fgrep \
|
|
tty \
|
|
mkdir \
|
|
touch \
|
|
sync \
|
|
more \
|
|
guitest \
|
|
guitest2 \
|
|
sysctl \
|
|
cp \
|
|
rm
|
|
|
|
ARCH_FLAGS =
|
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
|
USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident
|
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
|
|
FLAVOR_FLAGS = -march=i386 -mregparm=3 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
|
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
|
|
INCLUDE_FLAGS = -I.. -I. -I../LibC
|
|
|
|
DEFINES = -DSERENITY -DSANITIZE_PTRS -DUSERLAND
|
|
|
|
CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(USERLAND_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
|
CXX = clang
|
|
LD = ld
|
|
AR = ar
|
|
LDFLAGS = -static --strip-debug -melf_i386 --build-id=none -z norelro -z now -e _start --gc-sections
|
|
|
|
all: $(OBJS) $(APPS)
|
|
|
|
id: id.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
sh: sh.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
ps: ps.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
ls: ls.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
fgrep: fgrep.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
sleep: sleep.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
date: date.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
true: true.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
false: false.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
hostname: hostname.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
cat: cat.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
uname: uname.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
clear: clear.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
tst: tst.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
mm: mm.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
kill: kill.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
tty: tty.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
mkdir: mkdir.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
touch: touch.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
sync: sync.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
more: more.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
guitest: guitest.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
guitest2: guitest2.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibGUI/LibGUI.a ../LibC/LibC.a
|
|
|
|
sysctl: sysctl.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
cp: cp.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
rm: rm.o
|
|
$(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a
|
|
|
|
.cpp.o:
|
|
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
|
|
|
|
clean:
|
|
@echo "CLEAN"; rm -f $(APPS) $(OBJS)
|
|
|