Makefile BSD: Difference between revisions

From 탱이의 잡동사니
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== Overview ==
== Overview ==
BSD makefile 내용 정리.
BSD makefile 내용 정리.
== Conditional Statements(#if, #ifndef etc..) ==
<pre>
.if $(VER) >= 2.4
  TAG = 2.4_current
.elif $(VER) == 2.3
  TAG = 2.3_release
.else
  TAG = 2.4_stable
.endif
</pre>
=== exists(<arg>) ===
<pre>
clean:
    -rm -f *.o *.core
.if exists(tmp)
    -rm tmp/*.o
.endif
</pre>


== See also ==
== See also ==

Revision as of 08:51, 15 August 2016

Overview

BSD makefile 내용 정리.

Conditional Statements(#if, #ifndef etc..)

.if $(VER) >= 2.4
  TAG = 2.4_current
.elif $(VER) == 2.3
  TAG = 2.3_release
.else
  TAG = 2.4_stable
.endif

exists(<arg>)

clean:
    -rm -f *.o *.core
.if exists(tmp)
    -rm tmp/*.o
.endif

See also