# Step 03 -- Compile BOFs that use the full Beacon API
#
# Usage:
#   make          -- build both BOFs as object files
#   make clean    -- remove compiled objects

CC_MINGW = x86_64-w64-mingw32-gcc
CFLAGS   = -c

all: hello_bof.o args_bof.o

hello_bof.o: hello_bof.c beacon.h
	$(CC_MINGW) $(CFLAGS) hello_bof.c -o hello_bof.o

args_bof.o: args_bof.c beacon.h
	$(CC_MINGW) $(CFLAGS) args_bof.c -o args_bof.o

clean:
	rm -f *.o *.obj
