Kernel - x86_64 booting again (with some hackery)
[tpg/acess2.git] / Usermode / Libraries / crt0.o_src / rules.mk
1 # crt0 and friends
2
3 include $(BASE)header.mk
4
5 # Variables
6 SRCS := crt0.c crtbegin.c crtend.c
7 # signals.c
8 BIN := $(OUTPUTDIR)Libs/crt0.o $(OUTPUTDIR)Libs/crtbegin.o $(OUTPUTDIR)Libs/crtend.o
9
10 CFLAGS-$(DIR) := $(CFLAGS-$(PDIR)) -g
11 CPPFLAGS-$(DIR) := $(CPPFLAGS-$(PDIR))
12 LDFLAGS-$(DIR) := $(LDFLAGS-$(PDIR))
13
14 include $(BASE)body.mk
15
16 $(filter %crt0.o,$(BIN)): $(filter %crt0.c.o,$(OBJ))
17         @cp $< $@
18 $(filter %crtbegin.o,$(BIN)): $(filter %crtbegin.c.o,$(OBJ))
19         @cp $< $@
20 $(filter %crtend.o,$(BIN)): $(filter %crtend.c.o,$(OBJ))
21         @cp $< $@
22
23 include $(BASE)footer.mk

UCC git Repository :: git.ucc.asn.au