Changeset 337


Ignore:
Timestamp:
Jan 9, 2003, 9:24:47 PM (18 years ago)
Author:
pooh
Message:
  • Added simple 'Hello!' example.
Location:
to-imperative/trunk/samples
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/samples/Makefile

    r323 r337  
    77
    88SAMPLES = \
     9  hello \
    910  select1 \
    1011  select2 \
     
    1920all:: $(SAMPLES)
    2021
    21 #RFPC = ../compiler/rfpc
     22RFPC = ../compiler/rfpc
    2223LIBRFRT = ../runtime/librfrt.a
    2324
    24 $(SAMPLES): $(LIBRFRT)
     25#$(SAMPLES): $(LIBRFRT)
    2526
    26 $(SAMPLES): %: %.o
    27 #       $(RFPC) -cc -o $@.cc $<
    28         $(CXX) -o $@ $< -L../runtime -L../libstdc++-stub -lrfrt $(LDFLAGS) $(LDLIBS)
     27LDFLAGS += -L../runtime -L../library -L../libstdc++-stub
     28LDLIBS += -lrf -lrfrt -lsupc++
     29
     30%.o: %.rf
     31        $(RFPC) -cc $<
     32        $(CXX) $(CPPFLAGS) $(CFLAGS) -c -o $@ $(<:.rf=.cc)
     33
     34$(SAMPLES): %: %.o $(LIBRFRT)
     35        $(CXX) -o $@ $< $(LDFLAGS) $(LDLIBS)
    2936       
    3037clean::
Note: See TracChangeset for help on using the changeset viewer.