Makefile
资源名称:cgi-web.rar [点击查看]
上传用户:sxdewei
上传日期:2014-06-02
资源大小:67k
文件大小:4k
源码类别:
嵌入式Linux
开发平台:
Unix_Linux
- #CC = arm-linux-gcc
- #STRIP=arm-linux-strip
- CC = gcc -g
- STRIP=strip
- EXEC1 = networking.cgi
- OBJS1 = cgivars.o htmllib.o networking.o config_phase.o fifo.o sysconf.o
- EXEC2 = system_ctl.cgi
- OBJS2 = cgivars.o htmllib.o system_ctl.o config_phase.o fifo.o sysconf.o
- EXEC3 = video_setting.cgi
- OBJS3 = cgivars.o htmllib.o video_setting.o config_phase.o fifo.o sysconf.o
- EXEC4 = user_manager.cgi
- OBJS4 = cgivars.o htmllib.o user_manager.o config_phase.o fifo.o sysconf.o
- EXEC5 = sysinfo.cgi
- OBJS5 = cgivars.o htmllib.o sysinfo.o config_phase.o fifo.o sysconf.o
- EXEC6 = date.cgi
- OBJS6 = cgivars.o htmllib.o date.o config_phase.o fifo.o sysconf.o
- EXEC7 = video_crypt.cgi
- OBJS7 = cgivars.o htmllib.o video_crypt.o config_phase.o fifo.o sysconf.o
- EXEC8 = ftp.cgi
- OBJS8 = cgivars.o htmllib.o ftp.o config_phase.o fifo.o sysconf.o
- EXEC9 = mail.cgi
- OBJS9 = cgivars.o htmllib.o mail.o config_phase.o fifo.o sysconf.o
- EXEC10 = alert.cgi
- OBJS10 = cgivars.o htmllib.o alert.o config_phase.o fifo.o sysconf.o
- EXEC11 = timing.cgi
- OBJS11 = cgivars.o htmllib.o timing.o config_phase.o fifo.o sysconf.o
- EXEC12 = hist_video.cgi
- OBJS12 = cgivars.o htmllib.o hist_video.o config_phase.o fifo.o sysconf.o
- EXEC13 = maintenance.cgi
- OBJS13 = cgivars.o htmllib.o maintenance.o config_phase.o fifo.o sysconf.o
- EXEC14 = rt_video.cgi
- OBJS14 = cgivars.o htmllib.o rt_video.o config_phase.o fifo.o sysconf.o
- EXEC15 = menus.cgi
- OBJS15 = cgivars.o htmllib.o menus.o config_phase.o fifo.o sysconf.o
- EXEC16 = index.cgi
- OBJS16 = index.o
- all: $(EXEC1) $(EXEC2) $(EXEC3) $(EXEC4) $(EXEC5) $(EXEC6) $(EXEC7) $(EXEC8) $(EXEC9) $(EXEC10) $(EXEC11) $(EXEC12) $(EXEC13) $(EXEC14) $(EXEC15) $(EXEC16)
- $(EXEC1): $(OBJS1)
- $(CC) $(LDFLAGS) -o $@ $(OBJS1) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC2): $(OBJS2)
- $(CC) $(LDFLAGS) -o $@ $(OBJS2) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC3): $(OBJS3)
- $(CC) $(LDFLAGS) -o $@ $(OBJS3) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC4): $(OBJS4)
- $(CC) $(LDFLAGS) -o $@ $(OBJS4) $(EXTRALIBS) $(LDLIBS) -lcrypt
- # $(STRIP) $@
- $(EXEC5): $(OBJS5)
- $(CC) $(LDFLAGS) -o $@ $(OBJS5) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC6): $(OBJS6)
- $(CC) $(LDFLAGS) -o $@ $(OBJS6) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC7): $(OBJS7)
- $(CC) $(LDFLAGS) -o $@ $(OBJS7) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC8): $(OBJS8)
- $(CC) $(LDFLAGS) -o $@ $(OBJS8) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC9): $(OBJS9)
- $(CC) $(LDFLAGS) -o $@ $(OBJS9) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC10): $(OBJS10)
- $(CC) $(LDFLAGS) -o $@ $(OBJS10) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC11): $(OBJS11)
- $(CC) $(LDFLAGS) -o $@ $(OBJS11) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC12): $(OBJS12)
- $(CC) $(LDFLAGS) -o $@ $(OBJS12) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC13): $(OBJS13)
- $(CC) $(LDFLAGS) -o $@ $(OBJS13) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC14): $(OBJS14)
- $(CC) $(LDFLAGS) -o $@ $(OBJS14) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC15): $(OBJS15)
- $(CC) $(LDFLAGS) -o $@ $(OBJS15) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- $(EXEC16): $(OBJS16)
- $(CC) $(LDFLAGS) -o $@ $(OBJS16) $(EXTRALIBS) $(LDLIBS)
- $(STRIP) $@
- clean:
- -rm -f $(EXEC) *.elf *.gdb *.o $(EXEC1) $(EXEC2) $(EXEC3) $(EXEC4) $(EXEC5) $(EXEC6) $(EXEC7) $(EXEC8) $(EXEC9) $(EXEC10) $(EXEC11) $(EXEC12) $(EXEC13) $(EXEC14) $(EXEC15) $(EXEC16)
- install:
- -cp $(EXEC1) $(PREFIX)/web/cgi
- -cp $(EXEC2) $(PREFIX)/web/cgi
- -cp $(EXEC3) $(PREFIX)/web/cgi
- -cp $(EXEC4) $(PREFIX)/web/cgi
- -cp $(EXEC5) $(PREFIX)/web/cgi
- -cp $(EXEC6) $(PREFIX)/web/cgi
- -cp $(EXEC7) $(PREFIX)/web/cgi
- -cp $(EXEC8) $(PREFIX)/web/cgi
- -cp $(EXEC9) $(PREFIX)/web/cgi
- -cp $(EXEC10) $(PREFIX)/web/cgi
- -cp $(EXEC11) $(PREFIX)/web/cgi
- -cp $(EXEC12) $(PREFIX)/web/cgi
- -cp $(EXEC13) $(PREFIX)/web/cgi
- -cp $(EXEC14) $(PREFIX)/web/cgi
- -cp $(EXEC15) $(PREFIX)/web/cgi
- -cp $(EXEC16) $(PREFIX)/web/cgi
- chmod 4755 $(PREFIX)/web/cgi/*