Browse Source

Add release-x64 and release-src targets

tags/v1.0
Bernhard Fröhlich 5 years ago
parent
commit
a30c469278
1 changed files with 21 additions and 6 deletions
  1. 21
    6
      Makefile

+ 21
- 6
Makefile View File

@@ -31,13 +31,13 @@ endif
31 31
 ifeq ($(OS),Windows_NT)
32 32
 CFLAGS += -DHAVE__ALIGNED_MALLOC
33 33
 LDFLAGS	+= -lmsvcrt
34
-RELDIR	= drmdecrypt-$(VERSION)-win
35 34
 else
36 35
 CFLAGS += -DHAVE_POSIX_MEMALIGN
37 36
 LDFLAGS	+= -lc
38
-RELDIR	= drmdecrypt-$(VERSION)
39 37
 endif
40 38
 
39
+RELDIR	= drmdecrypt-$(VERSION)
40
+
41 41
 ##########################
42 42
 
43 43
 SRC	= AES.c AESNI.c drmdecrypt.c
@@ -48,15 +48,30 @@ all:	drmdecrypt
48 48
 drmdecrypt:	$(OBJS)
49 49
 	$(CC) $(LDFLAGS) -o $@ $(OBJS)
50 50
 
51
+drmdecrypt-static:	$(OBJS)
52
+	$(CC) $(LDFLAGS) -static -o $@ $(OBJS)
53
+
51 54
 install:	all
52 55
 	$(STRIP) drmdecrypt
53 56
 	$(INSTALL) drmdecrypt $(BINDIR)/drmdecrypt
54 57
 
55 58
 release-win:	all
56
-	rm -rf $(RELDIR)
57
-	mkdir $(RELDIR)
58
-	cp LICENSE README.md drmdecrypt.exe $(RELDIR)
59
-	$(STRIP) $(RELDIR)/*.exe
59
+	rm -rf $(RELDIR)-win
60
+	mkdir $(RELDIR)-win
61
+	cp LICENSE README.md drmdecrypt.exe $(RELDIR)-win
62
+	$(STRIP) $(RELDIR)-win/*.exe
63
+
64
+release-x64:	drmdecrypt drmdecrypt-static
65
+	rm -rf $(RELDIR)-x64
66
+	mkdir $(RELDIR)-x64
67
+	cp LICENSE README.md drmdecrypt drmdecrypt-static $(RELDIR)-x64
68
+	tar cvfj $(RELDIR)-x64.tar.bz2 $(RELDIR)-x64
69
+
70
+release-src:
71
+	rm -rf $(RELDIR)-src
72
+	mkdir $(RELDIR)-src
73
+	cp LICENSE README.md *.c *.h Makefile $(RELDIR)-src
74
+	tar cvfj $(RELDIR)-src.tar.bz2 $(RELDIR)-src
60 75
 
61 76
 clean:
62 77
 	rm -f *.o *.core drmdecrypt drmdecrypt.exe

Loading…
Cancel
Save