13 lines
249 B
Makefile
13 lines
249 B
Makefile
CC=gcc
|
|
PC=python3.11-config
|
|
PIE=-fPIE # this was necessary on my machine
|
|
CFLAGS=$(shell $(PC) --embed --cflags)
|
|
LDFLAGS=$(shell $(PC) --embed --ldflags)
|
|
|
|
simple: simple.o
|
|
$(CC) -o $@ $< $(LDFLAGS)
|
|
|
|
simple.o: simple.c
|
|
$(CC) -c $(CFLAGS) $(PIE) $<
|
|
|