some new things, mostly not working or finished
This commit is contained in:
21
niacin/cpp/Makefile
Normal file
21
niacin/cpp/Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -Werror -O2 -std=c99 -D_DEFAULT_SOURCE
|
||||
CFLAGS += -fstack-protector-strong -D_FORTIFY_SOURCE=2
|
||||
LDFLAGS = -z relro -z now
|
||||
|
||||
SOURCES = main.c vm_core.c
|
||||
OBJECTS = $(SOURCES:.c=.o)
|
||||
TARGET = popvm
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(CC) $(LDFLAGS) -o $@ $^
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS) $(TARGET)
|
||||
|
||||
.PHONY: all clean
|
||||
Reference in New Issue
Block a user