summaryrefslogtreecommitdiff
path: root/Makefile
blob: 12e0bab046043681193e5cd42901e7d9172fc23a (plain)
    1 out = netexpand
    2 warn = -Wall -Wpedantic
    3 cc = cc
    4 std = c99
    5 
    6 
    7 all:
    8 	$(cc) $(warn) -std=$(std) $(dbg) $(CFLAGS) src/common.c -c -o obj/common.o
    9 	$(cc) $(warn) -std=$(std) $(dbg) $(CFLAGS) src/ipv4.c -c -o obj/ipv4.o
   10 	$(cc) $(warn) -std=$(std) $(dbg) $(CFLAGS) src/main.c -lm obj/*.o -o $(out)
   11 
   12 debug:
   13 	make all dbg='-g'

Generated by cgit