aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-04-19 10:38:49 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-04-19 10:38:49 -0700
commit471886467ee05046e8bd9e3621878e06ca9cbd5f (patch)
tree8acca61746e2d6a2be9ea5e1cc81b248a6b67819 /Makefile
parent5a25f38de6d3e2506838191c55af94cb56c9f641 (diff)
feat: added skeleton libc and updated generated makefiles to correctly set target specific flags
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 1a21e76..344b88b 100644
--- a/Makefile
+++ b/Makefile
@@ -15,15 +15,11 @@ INCS := -I$(INC_DIR)
CFLAGS := -g -fno-strict-aliasing -fwrapv -fms-extensions
AFLAGS := -f elf64
-TGTFLAG :=
-TGTINCS :=
-TGTLIBS :=
-
# Named generic rules (must be evaluated lazily)
-COMPILE = $(CC) -MMD $(CFLAGS) $(TGTFLAGS) $(INCS) $(TGTINCS) -o $@ -c $<
-LINK = $(CC) -MMD $(CFLAGS) $(TGTFLAGS) -o $@ $^ $(LIBS) $(TGTLIBS)
-COMPLINK = $(CC) -MMD $(CFLAGS) $(TGTFLAGS) $(INCS) $(TGTINCS) -o $@ $^ $(LIBS)
-ASSEMBLE = $(AS) $(AFLAGS) $(TGTFLAGS) -o $@ $<
+COMPILE = $(CC) -MMD $(CFLAGS) $(TCFLAGS) $(INCS) $(TCINCS) -o $@ -c $<
+LINK = $(CC) -MMD $(CFLAGS) $(TCFLAGS) -o $@ $^ $(LIBS) $(TCLIBS)
+COMPLINK = $(CC) -MMD $(CFLAGS) $(TCFLAGS) $(INCS) $(TCINCS) -o $@ $^ $(LIBS) $(TCLIBS)
+ASSEMBLE = $(AS) $(AFLAGS) $(TCFLAGS) -o $@ $<
ARCHIVE = $(AR) crs $@ $^
include rules.mk