Changeset 31 for trunk


Ignore:
Timestamp:
Jul 23, 2006, 9:18:06 AM (13 years ago)
Author:
jtv
Message:

Structuring source tree

Location:
trunk
Files:
3 added
9 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile

    r29 r31  
    1 #! /usr//bin/make
     1#! /usr/bin/make
    22
    3 OBJS=ui_cli.o ui_web.o gamelogic.o c_abi.o save.o
    4 DELIVERABLES=ui_cli ui_web libmines.a
    5 CXXFLAGS=-O2 -g \
    6     -Wall \
    7     -Werror \
    8     -fstrict-aliasing \
    9     -funit-at-a-time \
    10     -pedantic \
    11     -W \
    12     -Wextra \
    13     -Wshadow \
    14     -Wreorder \
    15     -Wold-style-cast \
    16     -Woverloaded-virtual
    17 CFLAGS=-O2 -g \
    18     -Wall \
    19     -Werror \
    20     -fstrict-aliasing \
    21     -funit-at-a-time \
    22     -pedantic \
    23     -W \
    24     -Wextra \
    25     -Wshadow
     3OBJS=gamelogic.o c_abi.o save.o
     4DELIVERABLES=libmines.a
    265
    27 all: ui_cli ui_web library
     6all: $(DELIVERABLES)
    287
    298clean:
     
    3211distclean: clean
    3312    $(RM) $(DELIVERABLES)
    34 
    35 ui_cli: ui_cli.o libmines.a
    36     $(CXX) $(LDFLAGS) $(LOADLIBES) $^ -o $@
    37 
    38 ui_web: ui_web.o libmines.a
    39     $(CXX) $(LDFLAGS) $(LOADLIBES) $^ -o $@
    4013
    4114library: libmines.a
     
    4720    $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
    4821
    49 ui_web.o: ui_web.c c_abi.h
     22ui_web.o: ui_web.c
    5023    $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
    5124
     
    5326    $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
    5427
    55 c_abi.o: c_abi.cxx c_abi.h gamelogic.hxx
     28c_abi.o: c_abi.cxx gamelogic.hxx
    5629    $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
    5730
     
    6033
    6134.PHONY: all library
     35
Note: See TracChangeset for help on using the changeset viewer.