1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/apps/public/vlan/Makefile
2024-07-22 01:58:46 -03:00

46 lines
637 B
Makefile
Executable File

# makefile template
include MakeInclude
LDLIBS =
VLAN_OBJS = vconfig.o
ALL_OBJS = ${VLAN_OBJS}
VCONFIG = vconfig #program to be created
#all: ${VCONFIG} macvlan_config
all: ${VCONFIG}
#This is pretty silly..
vconfig.h: Makefile
touch vconfig.h
$(VCONFIG): $(VLAN_OBJS)
$(CC) $(CCFLAGS) $(LDFLAGS) -o $(VCONFIG) $(VLAN_OBJS) $(LDLIBS)
$(STRIP) $(VCONFIG)
macvlan_config: macvlan_config.c
$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $<
$(ALL_OBJS): %.o: %.c %.h
@echo " "
@echo "Making $<"
$(CC) $(CCFLAGS) -c $<
clean:
rm -f *.o
purge: clean
rm -f *.flc ${VCONFIG} macvlan_config vconfig.h
rm -f *~