Remove *_fill_nic() calls, and directly set nic->ioaddr and nic->irqno .
[gpxe.git] / contrib / wakeonlan / Makefile
blob563faa93ccfc5ad59037392f01104e1115b911f3
1 ## Makefile for use with gnu make and MinGW32 gnu gcc
3 TARGET=wol
5 CC=gcc
6 LD=gcc
8 CPPFLAGS= -Wall -O2
9 LFLAGS= -s
11 #LIBFILES= -lwsock
12 #LIBPATH= -L/usr/lib
14 ICON=$(TARGET).ico
15 OBJS=$(TARGET).o
16 RESF=$(TARGET).rc
18 #RESNAME=$(TARGET).res
19 #BINNAME=$(TARGET).exe
20 BINNAME=$(TARGET)
22 $(BINNAME): $(OBJS) $(RESNAME)
23 $(LD) $(LFLAGS) -o $@ $^ $(LIBPATH) $(LIBFILES)
25 %.res:%.rc
26 windres -I rc -O coff -i $< -o $@
28 %.rc:Makefile
29 @echo 100 ICON "$(ICON)" > $@
31 dist:$(BINNAME)
32 rm -f $(OBJS) $(RESNAME) $(RESF)
34 clean:
35 rm -f $(OBJS) $(RESNAME) $(RESF)
36 rm -f $(BINNAME)