Changeset 9


Ignore:
Timestamp:
Dec 17, 2005, 3:12:16 PM (14 years ago)
Author:
jtv
Message:

CGI interface--play on the web!

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r5 r9  
    11#! /usr//bin/make
    22
    3 OBJS=ui_cli.o gamelogic.o c_abi.o save.o
    4 DELIVERABLES=ui_cli libmines.a
     3OBJS=ui_cli.o ui_web.o gamelogic.o c_abi.o save.o
     4DELIVERABLES=ui_cli ui_web libmines.a
    55CXXFLAGS=-O2 -g \
    66    -Wall \
     
    1515    -Wold-style-cast \
    1616    -Woverloaded-virtual
     17CFLAGS=-O2 -g \
     18    -Wall \
     19    -Werror \
     20    -fstrict-aliasing \
     21    -funit-at-a-time \
     22    -pedantic \
     23    -W \
     24    -Wextra \
     25    -Wshadow
    1726
    18 all: ui_cli library
     27all: ui_cli ui_web library
    1928
    2029clean:
    21     $(RM) $(OBJS)
     30    $(RM) $(OBJS) mines.savedgame
    2231
    2332distclean: clean
     
    2534
    2635ui_cli: ui_cli.o libmines.a
     36    $(CXX) $(LDFLAGS) $(LOADLIBES) $^ -o $@
     37
     38ui_web: ui_web.o libmines.a
    2739    $(CXX) $(LDFLAGS) $(LOADLIBES) $^ -o $@
    2840
     
    3446ui_cli.o: ui_cli.cxx gamelogic.hxx
    3547    $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
     48
     49ui_web.o: ui_web.c c_abi.h
     50    $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
    3651
    3752gamelogic.o: gamelogic.cxx gamelogic.hxx save.hxx
Note: See TracChangeset for help on using the changeset viewer.