Changeset 0e786f66 in rtems


Ignore:
Timestamp:
Jan 15, 2004, 4:27:19 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
9480bb42
Parents:
f3fdc59
Message:

2004-01-15 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Use automake compilation rules.
Location:
c/src/optman
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/optman/ChangeLog

    rf3fdc59 r0e786f66  
     12004-01-15      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * Makefile.am: Use automake compilation rules.
     4
    152004-01-14      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    26
  • c/src/optman/Makefile.am

    rf3fdc59 r0e786f66  
    66include $(top_srcdir)/automake/lib.am
    77
    8 sapi_C_FILES = sapi/no-ext.c sapi/no-io.c
    9 OBJS = $(sapi_C_FILES:sapi/%.c=$(ARCH)/%.$(OBJEXT))
    10 
    11 rtems_C_FILES = rtems/no-dpmem.c rtems/no-event.c rtems/no-msg.c \
    12     rtems/no-mp.c rtems/no-part.c rtems/no-region.c rtems/no-rtmon.c \
    13     rtems/no-sem.c rtems/no-signal.c rtems/no-timer.c
    14 OBJS += $(rtems_C_FILES:rtems/%.c=$(ARCH)/%.$(OBJEXT))
    15 
    16 PGMS = $(rtems_C_FILES:rtems/%.c=$(ARCH)/%$(LIB_VARIANT).rel)
    17 PGMS += $(sapi_C_FILES:sapi/%.c=$(ARCH)/%$(LIB_VARIANT).rel)
    18 
    19 $(ARCH)/%.$(OBJEXT): sapi/%.c $(ARCH)/$(dirstamp)
    20         ${COMPILE} -o $@ -c $<
    21 
    22 $(ARCH)/%.$(OBJEXT): rtems/%.c $(ARCH)/$(dirstamp)
    23         ${COMPILE} -o $@ -c $<
    24 
    25 # Make foo.rel from foo.o
    26 $(ARCH)/%$(LIB_VARIANT).rel: $(ARCH)/%.o
    27         ${make-rel}
    28 
    29 project_lib_DATA = $(ARCH)/no-ext$(LIB_VARIANT).rel \
    30     $(ARCH)/no-io$(LIB_VARIANT).rel $(ARCH)/no-dpmem$(LIB_VARIANT).rel \
    31     $(ARCH)/no-event$(LIB_VARIANT).rel $(ARCH)/no-msg$(LIB_VARIANT).rel \
    32     $(ARCH)/no-mp$(LIB_VARIANT).rel $(ARCH)/no-part$(LIB_VARIANT).rel \
    33     $(ARCH)/no-region$(LIB_VARIANT).rel $(ARCH)/no-rtmon$(LIB_VARIANT).rel \
    34     $(ARCH)/no-sem$(LIB_VARIANT).rel $(ARCH)/no-signal$(LIB_VARIANT).rel \
    35     $(ARCH)/no-timer$(LIB_VARIANT).rel
    36 
    37 all-local: $(PGMS) $(TMPINSTALL_FILES)
    38 
    39 .PRECIOUS: $(PGMS) $(OBJS)
    40 
    41 EXTRA_DIST = $(rtems_C_FILES) $(sapi_C_FILES)
     8EXTRA_PROGRAMS =
     9CLEANFILES =
     10project_lib_DATA =
     11
     12EXTRA_PROGRAMS += no-ext.rel
     13CLEANFILES += no-ext.rel
     14no_ext_rel_SOURCES = sapi/no-ext.c
     15no_ext_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     16no_ext_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     17
     18EXTRA_PROGRAMS += no-ext_g.rel
     19CLEANFILES += no-ext_g.rel
     20no_ext_g_rel_SOURCES = $(no_ext_rel_SOURCES)
     21no_ext_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     22no_ext_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     23
     24project_lib_DATA += no-ext$(LIB_VARIANT).rel
     25
     26EXTRA_PROGRAMS += no-io.rel
     27CLEANFILES += no-io.rel
     28no_io_rel_SOURCES = sapi/no-io.c
     29no_io_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     30no_io_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     31
     32EXTRA_PROGRAMS += no-io_g.rel
     33CLEANFILES += no-io_g.rel
     34no_io_g_rel_SOURCES = $(no_io_rel_SOURCES)
     35no_io_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     36no_io_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     37
     38project_lib_DATA += no-io$(LIB_VARIANT).rel
     39
     40EXTRA_PROGRAMS += no-dpmem.rel
     41CLEANFILES += no-dpmem.rel
     42no_dpmem_rel_SOURCES = rtems/no-dpmem.c
     43no_dpmem_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     44no_dpmem_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     45
     46EXTRA_PROGRAMS += no-dpmem_g.rel
     47CLEANFILES += no-dpmem_g.rel
     48no_dpmem_g_rel_SOURCES = $(no_dpmem_rel_SOURCES)
     49no_dpmem_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     50no_dpmem_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     51
     52project_lib_DATA += no-dpmem$(LIB_VARIANT).rel
     53
     54EXTRA_PROGRAMS += no-event.rel
     55CLEANFILES += no-event.rel
     56no_event_rel_SOURCES = rtems/no-event.c
     57no_event_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     58no_event_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     59
     60EXTRA_PROGRAMS += no-event_g.rel
     61CLEANFILES += no-event_g.rel
     62no_event_g_rel_SOURCES = $(no_event_rel_SOURCES)
     63no_event_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     64no_event_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     65
     66project_lib_DATA += no-event$(LIB_VARIANT).rel
     67
     68EXTRA_PROGRAMS += no-msg.rel
     69CLEANFILES += no-msg.rel
     70no_msg_rel_SOURCES = rtems/no-msg.c
     71no_msg_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     72no_msg_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     73
     74EXTRA_PROGRAMS += no-msg_g.rel
     75CLEANFILES += no-msg_g.rel
     76no_msg_g_rel_SOURCES = $(no_msg_rel_SOURCES)
     77no_msg_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     78no_msg_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     79
     80project_lib_DATA += no-msg$(LIB_VARIANT).rel
     81
     82EXTRA_PROGRAMS += no-mp.rel
     83CLEANFILES += no-mp.rel
     84no_mp_rel_SOURCES = rtems/no-mp.c
     85no_mp_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     86no_mp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     87
     88EXTRA_PROGRAMS += no-mp_g.rel
     89CLEANFILES += no-mp_g.rel
     90no_mp_g_rel_SOURCES = $(no_mp_rel_SOURCES)
     91no_mp_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     92no_mp_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     93
     94project_lib_DATA += no-mp$(LIB_VARIANT).rel
     95
     96EXTRA_PROGRAMS += no-part.rel
     97CLEANFILES += no-part.rel
     98no_part_rel_SOURCES = rtems/no-part.c
     99no_part_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     100no_part_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     101
     102EXTRA_PROGRAMS += no-part_g.rel
     103CLEANFILES += no-part_g.rel
     104no_part_g_rel_SOURCES = $(no_part_rel_SOURCES)
     105no_part_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     106no_part_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     107
     108project_lib_DATA += no-part$(LIB_VARIANT).rel
     109
     110EXTRA_PROGRAMS += no-region.rel
     111CLEANFILES += no-region.rel
     112no_region_rel_SOURCES = rtems/no-region.c
     113no_region_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     114no_region_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     115
     116EXTRA_PROGRAMS += no-region_g.rel
     117CLEANFILES += no-region_g.rel
     118no_region_g_rel_SOURCES = $(no_region_rel_SOURCES)
     119no_region_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     120no_region_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     121
     122project_lib_DATA += no-region$(LIB_VARIANT).rel
     123
     124EXTRA_PROGRAMS += no-rtmon.rel
     125CLEANFILES += no-rtmon.rel
     126no_rtmon_rel_SOURCES = rtems/no-rtmon.c
     127no_rtmon_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     128no_rtmon_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     129
     130EXTRA_PROGRAMS += no-rtmon_g.rel
     131CLEANFILES += no-rtmon_g.rel
     132no_rtmon_g_rel_SOURCES = $(no_rtmon_rel_SOURCES)
     133no_rtmon_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     134no_rtmon_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     135
     136project_lib_DATA += no-rtmon$(LIB_VARIANT).rel
     137
     138EXTRA_PROGRAMS += no-sem.rel
     139CLEANFILES += no-sem.rel
     140no_sem_rel_SOURCES = rtems/no-sem.c
     141no_sem_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     142no_sem_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     143
     144EXTRA_PROGRAMS += no-sem_g.rel
     145CLEANFILES += no-sem_g.rel
     146no_sem_g_rel_SOURCES = $(no_sem_rel_SOURCES)
     147no_sem_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     148no_sem_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     149
     150project_lib_DATA += no-sem$(LIB_VARIANT).rel
     151
     152EXTRA_PROGRAMS += no-signal.rel
     153CLEANFILES += no-signal.rel
     154no_signal_rel_SOURCES = rtems/no-signal.c
     155no_signal_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     156no_signal_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     157
     158EXTRA_PROGRAMS += no-signal_g.rel
     159CLEANFILES += no-signal_g.rel
     160no_signal_g_rel_SOURCES = $(no_signal_rel_SOURCES)
     161no_signal_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     162no_signal_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     163
     164project_lib_DATA += no-signal$(LIB_VARIANT).rel
     165
     166EXTRA_PROGRAMS += no-timer.rel
     167CLEANFILES += no-timer.rel
     168no_timer_rel_SOURCES = rtems/no-timer.c
     169no_timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     170no_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     171
     172EXTRA_PROGRAMS += no-timer_g.rel
     173CLEANFILES += no-timer_g.rel
     174no_timer_g_rel_SOURCES = $(no_timer_rel_SOURCES)
     175no_timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     176no_timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     177
     178project_lib_DATA += no-timer$(LIB_VARIANT).rel
     179
     180all-local: $(TMPINSTALL_FILES)
    42181
    43182TMPINSTALL_FILES =
     
    48187TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
    49188
    50 $(PROJECT_LIB)/no-ext$(LIB_VARIANT).rel: $(ARCH)/no-ext$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     189$(PROJECT_LIB)/no-ext$(LIB_VARIANT).rel: no-ext$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    51190        $(INSTALL_DATA) $< $(PROJECT_LIB)/no-ext$(LIB_VARIANT).rel
    52191TMPINSTALL_FILES += $(PROJECT_LIB)/no-ext$(LIB_VARIANT).rel
    53192
    54 $(PROJECT_LIB)/no-io$(LIB_VARIANT).rel: $(ARCH)/no-io$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     193$(PROJECT_LIB)/no-io$(LIB_VARIANT).rel: no-io$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    55194        $(INSTALL_DATA) $< $(PROJECT_LIB)/no-io$(LIB_VARIANT).rel
    56195TMPINSTALL_FILES += $(PROJECT_LIB)/no-io$(LIB_VARIANT).rel
    57196
    58 $(PROJECT_LIB)/no-dpmem$(LIB_VARIANT).rel: $(ARCH)/no-dpmem$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     197$(PROJECT_LIB)/no-dpmem$(LIB_VARIANT).rel: no-dpmem$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    59198        $(INSTALL_DATA) $< $(PROJECT_LIB)/no-dpmem$(LIB_VARIANT).rel
    60199TMPINSTALL_FILES += $(PROJECT_LIB)/no-dpmem$(LIB_VARIANT).rel
    61200
    62 $(PROJECT_LIB)/no-event$(LIB_VARIANT).rel: $(ARCH)/no-event$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     201$(PROJECT_LIB)/no-event$(LIB_VARIANT).rel: no-event$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    63202        $(INSTALL_DATA) $< $(PROJECT_LIB)/no-event$(LIB_VARIANT).rel
    64203TMPINSTALL_FILES += $(PROJECT_LIB)/no-event$(LIB_VARIANT).rel
    65204
    66 $(PROJECT_LIB)/no-msg$(LIB_VARIANT).rel: $(ARCH)/no-msg$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     205$(PROJECT_LIB)/no-msg$(LIB_VARIANT).rel: no-msg$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    67206        $(INSTALL_DATA) $< $(PROJECT_LIB)/no-msg$(LIB_VARIANT).rel
    68207TMPINSTALL_FILES += $(PROJECT_LIB)/no-msg$(LIB_VARIANT).rel
    69208
    70 $(PROJECT_LIB)/no-mp$(LIB_VARIANT).rel: $(ARCH)/no-mp$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     209$(PROJECT_LIB)/no-mp$(LIB_VARIANT).rel: no-mp$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    71210        $(INSTALL_DATA) $< $(PROJECT_LIB)/no-mp$(LIB_VARIANT).rel
    72211TMPINSTALL_FILES += $(PROJECT_LIB)/no-mp$(LIB_VARIANT).rel
    73212
    74 $(PROJECT_LIB)/no-part$(LIB_VARIANT).rel: $(ARCH)/no-part$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     213$(PROJECT_LIB)/no-part$(LIB_VARIANT).rel: no-part$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    75214        $(INSTALL_DATA) $< $(PROJECT_LIB)/no-part$(LIB_VARIANT).rel
    76215TMPINSTALL_FILES += $(PROJECT_LIB)/no-part$(LIB_VARIANT).rel
    77216
    78 $(PROJECT_LIB)/no-region$(LIB_VARIANT).rel: $(ARCH)/no-region$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     217$(PROJECT_LIB)/no-region$(LIB_VARIANT).rel: no-region$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    79218        $(INSTALL_DATA) $< $(PROJECT_LIB)/no-region$(LIB_VARIANT).rel
    80219TMPINSTALL_FILES += $(PROJECT_LIB)/no-region$(LIB_VARIANT).rel
    81220
    82 $(PROJECT_LIB)/no-rtmon$(LIB_VARIANT).rel: $(ARCH)/no-rtmon$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     221$(PROJECT_LIB)/no-rtmon$(LIB_VARIANT).rel: no-rtmon$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    83222        $(INSTALL_DATA) $< $(PROJECT_LIB)/no-rtmon$(LIB_VARIANT).rel
    84223TMPINSTALL_FILES += $(PROJECT_LIB)/no-rtmon$(LIB_VARIANT).rel
    85224
    86 $(PROJECT_LIB)/no-sem$(LIB_VARIANT).rel: $(ARCH)/no-sem$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     225$(PROJECT_LIB)/no-sem$(LIB_VARIANT).rel: no-sem$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    87226        $(INSTALL_DATA) $< $(PROJECT_LIB)/no-sem$(LIB_VARIANT).rel
    88227TMPINSTALL_FILES += $(PROJECT_LIB)/no-sem$(LIB_VARIANT).rel
    89228
    90 $(PROJECT_LIB)/no-signal$(LIB_VARIANT).rel: $(ARCH)/no-signal$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     229$(PROJECT_LIB)/no-signal$(LIB_VARIANT).rel: no-signal$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    91230        $(INSTALL_DATA) $< $(PROJECT_LIB)/no-signal$(LIB_VARIANT).rel
    92231TMPINSTALL_FILES += $(PROJECT_LIB)/no-signal$(LIB_VARIANT).rel
    93232
    94 $(PROJECT_LIB)/no-timer$(LIB_VARIANT).rel: $(ARCH)/no-timer$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     233$(PROJECT_LIB)/no-timer$(LIB_VARIANT).rel: no-timer$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    95234        $(INSTALL_DATA) $< $(PROJECT_LIB)/no-timer$(LIB_VARIANT).rel
    96235TMPINSTALL_FILES += $(PROJECT_LIB)/no-timer$(LIB_VARIANT).rel
    97236
    98 CLEANFILES = $(TMPINSTALL_FILES)
     237CLEANFILES += $(TMPINSTALL_FILES)
    99238
    100239include $(top_srcdir)/automake/local.am
Note: See TracChangeset for help on using the changeset viewer.