~ubuntu-branches/ubuntu/natty/tickr/natty-backports

« back to all changes in this revision

Viewing changes to src/libetm-0.4.4/Makefile-libetm-win32

  • Committer: Package Import Robot
  • Author(s): Micah Gersten
  • Date: 2012-09-02 02:09:26 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20120902020926-h73m62lpf0m2eaam
Tags: 0.6.2-1~ubuntu11.04.1
No-change backport to natty (LP: #1027173)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for libetm-0.4.4 - win32 version
 
2
 
 
3
src =   str_mem.c error.c misc.c win32_specific.c
 
4
obj =   $(src:.c=.o)
 
5
headers = libetm.h $(src:.c=.h)
 
6
 
 
7
CC =    gcc
 
8
 
 
9
CFLAGS = -O2 -Wall -Wextra -Wunused-parameter -Wshadow -Wpointer-arith\
 
10
        -ffast-math -pedantic -DWIN32_V
 
11
 
 
12
all:    libetm.a
 
13
 
 
14
$(obj): $(src) $(headers) Makefile
 
15
        $(CC) $(CFLAGS) -c $(src)
 
16
 
 
17
libetm.a: $(obj)
 
18
        ar -r libetm.a $(obj)
 
19
 
 
20
.PHONY: install
 
21
install:
 
22
        mkdir -p /usr/local/include/libetm
 
23
        cp $(headers) /usr/local/include/libetm/
 
24
        cp libetm.a /usr/local/lib/
 
25
 
 
26
.PHONY: clean
 
27
clean:
 
28
        rm $(obj) libetm.a